From ddcab4c53bf75b616228153758fd4245689bc99e Mon Sep 17 00:00:00 2001 From: Greg Kroah-Hartman Date: Sat, 16 Nov 2024 16:04:55 +0100 Subject: [PATCH] Remove commented out code in usbreset.c and list.h and container_of.h Gets rid of a CodeQL warning that it might be "confusing" to have commented out code in a file. Kids these days, surely they must use an editor that shows comments in different colors so that they notice this isn't really going to do anything... Signed-off-by: Greg Kroah-Hartman --- ccan/container_of/container_of.h | 1 - ccan/list/list.h | 7 +++---- usbreset.c | 3 --- 3 files changed, 3 insertions(+), 8 deletions(-) diff --git a/ccan/container_of/container_of.h b/ccan/container_of/container_of.h index 1655991..f729bcb 100644 --- a/ccan/container_of/container_of.h +++ b/ccan/container_of/container_of.h @@ -6,7 +6,6 @@ #include #include "../config.h" -//#include #include "../check_type/check_type.h" /** diff --git a/ccan/list/list.h b/ccan/list/list.h index c8a1092..b1f54fb 100644 --- a/ccan/list/list.h +++ b/ccan/list/list.h @@ -1,14 +1,13 @@ // SPDX-License-Identifier: MIT // SPDX-FileCopyrightText: Rusty Russell /* Licensed under BSD-MIT - see LICENSE file for details */ + +/* define CCAN_LIST_DEBUG to be 1 if you want to have some debugging in here */ + #ifndef CCAN_LIST_H #define CCAN_LIST_H -//#define CCAN_LIST_DEBUG 1 #include #include -//#include -//#include -//#include #include "../str/str.h" #include "../container_of/container_of.h" #include "../check_type/check_type.h" diff --git a/usbreset.c b/usbreset.c index b087911..8591c9f 100644 --- a/usbreset.c +++ b/usbreset.c @@ -18,9 +18,6 @@ #include - -/* static char *usbfs = NULL; */ - struct usbentry { int bus_num; int dev_num;