mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2026-01-04 16:21:11 +00:00
When building with Clang + -Wtautological-pointer-compare:
drivers/usb/gadget/udc/bdc/bdc_ep.c:543:28: warning: comparison of
address of 'req->queue' equal to a null pointer is always false
[-Wtautological-pointer-compare]
if (req == NULL || &req->queue == NULL || &req->usb_req == NULL)
~~~~~^~~~~ ~~~~
drivers/usb/gadget/udc/bdc/bdc_ep.c:543:51: warning: comparison of
address of 'req->usb_req' equal to a null pointer is always false
[-Wtautological-pointer-compare]
if (req == NULL || &req->queue == NULL || &req->usb_req == NULL)
~~~~~^~~~~~~ ~~~~
2 warnings generated.
As it notes, these statements will always evaluate to false so remove
them.
Fixes:
|
||
|---|---|---|
| .. | ||
| bdc_cmd.c | ||
| bdc_cmd.h | ||
| bdc_core.c | ||
| bdc_dbg.c | ||
| bdc_dbg.h | ||
| bdc_ep.c | ||
| bdc_ep.h | ||
| bdc_pci.c | ||
| bdc_udc.c | ||
| bdc.h | ||
| Kconfig | ||
| Makefile | ||