diff options
author | kbuild test robot <fengguang.wu@intel.com> | 2017-10-25 00:33:18 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-10-25 08:54:33 +0200 |
commit | c929d84735bff4349bde809a5a8eb1996bf371f6 (patch) | |
tree | c6c09a9f7b2bcc25e07bdee7f27a2a94d5fa5c27 /drivers/phy/broadcom | |
parent | 2d5afd51fe6b469e09d8d63fff041cbf4a987278 (diff) | |
download | linux-c929d84735bff4349bde809a5a8eb1996bf371f6.tar.bz2 |
usb: xhci-mtk: fix ptr_ret.cocci warnings
drivers/usb/host/xhci-mtk.c:256:1-3: WARNING: PTR_ERR_OR_ZERO can be used
Use PTR_ERR_OR_ZERO rather than if(IS_ERR(...)) + PTR_ERR
Generated by: scripts/coccinelle/api/ptr_ret.cocci
Fixes: b6bb72cf0df1 ("usb: xhci-mtk: add optional mcu and dma bus clocks")
Signed-off-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Chunfeng Yun <chunfeng.yun@mediatek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/phy/broadcom')
0 files changed, 0 insertions, 0 deletions