diff options
author | Nishka Dasgupta | 2019-05-29 15:08:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2019-05-30 23:13:45 +0200 |
commit | 8fe0260030b8e6c944fceb452a6a36fc1c7daf87 (patch) | |
tree | a5a7394a3179b49c04813cf38846eb60e1ad8bca /drivers/staging/octeon-usb | |
parent | Staging: rtl8723bs: hal: fix warning possible condition with no effect (if ==... (diff) | |
download | kernel-qcow2-linux-8fe0260030b8e6c944fceb452a6a36fc1c7daf87.tar.gz kernel-qcow2-linux-8fe0260030b8e6c944fceb452a6a36fc1c7daf87.tar.xz kernel-qcow2-linux-8fe0260030b8e6c944fceb452a6a36fc1c7daf87.zip |
staging: octeon-usb: Remove return variable
Remove return variable result and return the value directly.
Issue found using Coccinelle.
Signed-off-by: Nishka Dasgupta <nishkadg.linux@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/octeon-usb')
-rw-r--r-- | drivers/staging/octeon-usb/octeon-hcd.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index aeec16314e0d..cd2b777073c4 100644 --- a/drivers/staging/octeon-usb/octeon-hcd.c +++ b/drivers/staging/octeon-usb/octeon-hcd.c @@ -521,8 +521,7 @@ static void octeon_unmap_urb_for_dma(struct usb_hcd *hcd, struct urb *urb) */ static inline u32 cvmx_usb_read_csr32(struct octeon_hcd *usb, u64 address) { - u32 result = cvmx_read64_uint32(address ^ 4); - return result; + return cvmx_read64_uint32(address ^ 4); } /** |