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 <gregkh@linuxfoundation.org>
This commit is contained in:
Greg Kroah-Hartman 2024-11-16 16:04:55 +01:00
parent 79a0b233a3
commit ddcab4c53b
3 changed files with 3 additions and 8 deletions

View File

@ -6,7 +6,6 @@
#include <stddef.h>
#include "../config.h"
//#include <ccan/check_type/check_type.h>
#include "../check_type/check_type.h"
/**

View File

@ -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"

View File

@ -18,9 +18,6 @@
#include <linux/usbdevice_fs.h>
/* static char *usbfs = NULL; */
struct usbentry {
int bus_num;
int dev_num;