diff options
author | Nishka Dasgupta <nishkadg.linux@gmail.com> | 2019-05-29 18:38:35 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-05-30 14:13:45 -0700 |
commit | 8fe0260030b8e6c944fceb452a6a36fc1c7daf87 (patch) | |
tree | a5a7394a3179b49c04813cf38846eb60e1ad8bca | |
parent | 1f816787b6606e42929a22ca2976f9804aaa1dd0 (diff) |
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>
-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); } /** |