Skip to content

Commit ddcab4c

Browse files
committedNov 16, 2024·
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 <[email protected]>
1 parent 79a0b23 commit ddcab4c

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed
 

‎ccan/container_of/container_of.h

-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
#include <stddef.h>
77

88
#include "../config.h"
9-
//#include <ccan/check_type/check_type.h>
109
#include "../check_type/check_type.h"
1110

1211
/**

‎ccan/list/list.h

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,13 @@
11
// SPDX-License-Identifier: MIT
22
// SPDX-FileCopyrightText: Rusty Russell <rusty@rustcorp.com.au>
33
/* Licensed under BSD-MIT - see LICENSE file for details */
4+
5+
/* define CCAN_LIST_DEBUG to be 1 if you want to have some debugging in here */
6+
47
#ifndef CCAN_LIST_H
58
#define CCAN_LIST_H
6-
//#define CCAN_LIST_DEBUG 1
79
#include <stdbool.h>
810
#include <assert.h>
9-
//#include <ccan/str/str.h>
10-
//#include <ccan/container_of/container_of.h>
11-
//#include <ccan/check_type/check_type.h>
1211
#include "../str/str.h"
1312
#include "../container_of/container_of.h"
1413
#include "../check_type/check_type.h"

‎usbreset.c

-3
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,6 @@
1818

1919
#include <linux/usbdevice_fs.h>
2020

21-
22-
/* static char *usbfs = NULL; */
23-
2421
struct usbentry {
2522
int bus_num;
2623
int dev_num;

0 commit comments

Comments
 (0)
Please sign in to comment.