Skip to content

Commit

Permalink
Remove commented out code in usbreset.c and list.h and container_of.h
Browse files Browse the repository at this point in the history
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 <gregkh@linuxfoundation.org>
  • Loading branch information
gregkh committed Nov 16, 2024
1 parent 79a0b23 commit ddcab4c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 8 deletions.
1 change: 0 additions & 1 deletion ccan/container_of/container_of.h
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
#include <stddef.h>

#include "../config.h"
//#include <ccan/check_type/check_type.h>
#include "../check_type/check_type.h"

/**
Expand Down
7 changes: 3 additions & 4 deletions ccan/list/list.h
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
// SPDX-License-Identifier: MIT
// SPDX-FileCopyrightText: Rusty Russell <rusty@rustcorp.com.au>
/* 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 <stdbool.h>
#include <assert.h>
//#include <ccan/str/str.h>
//#include <ccan/container_of/container_of.h>
//#include <ccan/check_type/check_type.h>
#include "../str/str.h"
#include "../container_of/container_of.h"
#include "../check_type/check_type.h"
Expand Down
3 changes: 0 additions & 3 deletions usbreset.c
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,6 @@

#include <linux/usbdevice_fs.h>


/* static char *usbfs = NULL; */

struct usbentry {
int bus_num;
int dev_num;
Expand Down

0 comments on commit ddcab4c

Please sign in to comment.