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
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);
}