diff mbox series

Usb: Storage: usb: Fixed coding style issue

Message ID 20210821121630.29318-1-niklaslantau@gmail.com
State New
Headers show
Series Usb: Storage: usb: Fixed coding style issue | expand

Commit Message

Niklas Lantau Aug. 21, 2021, 12:16 p.m. UTC
Fixed coding style issue. Removed not needed braces.

Signed-off-by: Niklas Lantau <niklaslantau@gmail.com>
---
 drivers/usb/storage/usb.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

Comments

Greg KH Aug. 26, 2021, 11:24 a.m. UTC | #1
On Sat, Aug 21, 2021 at 02:16:30PM +0200, Niklas Lantau wrote:
> Fixed coding style issue. Removed not needed braces.


That is not easy to parse.

And it is written either "USB" or "usb", never "Usb".

thanks,

greg k-h
diff mbox series

Patch

diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c
index 90aa9c12ffac..5f562bac14d0 100644
--- a/drivers/usb/storage/usb.c
+++ b/drivers/usb/storage/usb.c
@@ -926,9 +926,8 @@  static unsigned int usb_stor_sg_tablesize(struct usb_interface *intf)
 {
 	struct usb_device *usb_dev = interface_to_usbdev(intf);
 
-	if (usb_dev->bus->sg_tablesize) {
+	if (usb_dev->bus->sg_tablesize)
 		return usb_dev->bus->sg_tablesize;
-	}
 	return SG_ALL;
 }