Thread (35 messages) 35 messages, 6 authors, 2025-10-13

Re: [PATCH 2/2] net: usb: support quirks in usbnet

From: Jakub Kicinski <kuba@kernel.org>
Date: 2025-09-29 04:23:58
Also in: linux-usb

On Sun, 28 Sep 2025 09:46:31 +0800 yicongsrfy@163.com wrote:
+	const struct usb_device_id *match = usb_match_id(intf,
+							 usbnet_ignore_list);
+
+	return match == NULL ? false : true;
coccicheck says:

drivers/net/usb/usbnet_quirks.h:40:24-29: WARNING: conversion to bool not needed here

this function could be simply:

{
	return !usb_match_id(intf, usbnet_ignore_list);
}
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help