mirror of https://gitee.com/openkylin/linux.git
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>
This commit is contained in:
parent
dfa5fbb9db
commit
b92f5d83fa
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue