linux_dsm_epyc7002/drivers/usb/gadget/udc/bdc
Nathan Chancellor 09b04abb70 usb: gadget: udc: bdc: Remove unnecessary NULL checks in bdc_req_complete
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: efed421a94 ("usb: gadget: Add UDC driver for Broadcom USB3.0 device controller IP BDC")
Link: https://github.com/ClangBuiltLinux/linux/issues/749
Signed-off-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Felipe Balbi <balbi@kernel.org>
2020-04-16 11:02:26 +03:00
..
bdc_cmd.c usb: gadget: fix various indentation issues 2019-02-07 13:14:51 +02:00
bdc_cmd.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_core.c usb: bdc: use devm_platform_ioremap_resource() to simplify code 2019-10-04 14:09:40 +02:00
bdc_dbg.c USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_dbg.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_ep.c usb: gadget: udc: bdc: Remove unnecessary NULL checks in bdc_req_complete 2020-04-16 11:02:26 +03:00
bdc_ep.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
bdc_pci.c USB: gadget: udc: Add missing platform_device_put() on error in bdc_pci_probe() 2018-02-15 15:28:13 +02:00
bdc_udc.c USB: gadget: udc: clean up an indentation issue 2019-10-04 14:09:42 +02:00
bdc.h USB: gadget: udc: Remove redundant license text 2017-11-07 15:45:02 +01:00
Kconfig USB: add missing SPDX lines to Kconfig and Makefiles 2019-01-22 09:08:17 +01:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00