Skip to contentSkip to conversation

staging: octeon-usb: Remove return variable

PATCH New Nishka Dasgupta 1 participant 1 message May 29, 2019 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: octeon-usb: Remove return variable

Remove return variable result and return the value directly. Issue found using Coccinelle.

---
 drivers/staging/octeon-usb/octeon-hcd.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
drivers/staging/octeon-usb/octeon-hcd.c +1 -2
index aeec16314e0d..cd2b777073c4 100644
@@ -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);
 }
 
 /**
Signature · 1 line
2.19.1