diff options
author | Himadri Pandya <himadri18.07@gmail.com> | 2019-03-09 15:01:58 +0530 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-03-18 07:05:22 +0100 |
commit | b92f5d83fa1d6d9eacf2f43630cd5f9c30bd3c24 (patch) | |
tree | c0acde28c2095e9e621fc8faf6af9d14f1f22108 /drivers/staging | |
parent | dfa5fbb9dbced2808e12207942426868c67c046a (diff) | |
download | blackbird-op-linux-b92f5d83fa1d6d9eacf2f43630cd5f9c30bd3c24.tar.gz blackbird-op-linux-b92f5d83fa1d6d9eacf2f43630cd5f9c30bd3c24.zip |
staging: octeon-usb: remove unnecessary variable frame_number
Remove unnecessary local variable "frame_number" and its assignments from function
cvmx_usb_get_frame_numbe. Suggested by Coccinelle.
Signed-off-by: Himadri Pandya <himadri18.07@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging')
-rw-r--r-- | drivers/staging/octeon-usb/octeon-hcd.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/staging/octeon-usb/octeon-hcd.c b/drivers/staging/octeon-usb/octeon-hcd.c index 14982b6472a0..aeec16314e0d 100644 --- a/drivers/staging/octeon-usb/octeon-hcd.c +++ b/drivers/staging/octeon-usb/octeon-hcd.c @@ -2385,13 +2385,11 @@ static int cvmx_usb_close_pipe(struct octeon_hcd *usb, */ static int cvmx_usb_get_frame_number(struct octeon_hcd *usb) { - int frame_number; union cvmx_usbcx_hfnum usbc_hfnum; usbc_hfnum.u32 = cvmx_usb_read_csr32(usb, CVMX_USBCX_HFNUM(usb->index)); - frame_number = usbc_hfnum.s.frnum; - return frame_number; + return usbc_hfnum.s.frnum; } static void cvmx_usb_transfer_control(struct octeon_hcd *usb, |