[PATCH 3/3] USB: misc: ldusb: Added Space after ',' to fit the coding style

2017-03-03 Thread Milian Reichardt
Added a Space after ',' to get rid of an error message in checkpatch.pl
and improve readability

Signed-of-by: Milian Reichardt 
---
 drivers/usb/misc/ldusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c
index 2c68e5153539..77b76b468307 100644
--- a/drivers/usb/misc/ldusb.c
+++ b/drivers/usb/misc/ldusb.c
@@ -561,7 +561,7 @@ static ssize_t ld_usb_write(struct file *file, const char 
__user *buffer,
/* write the data into interrupt_out_buffer from userspace */
bytes_to_write = min(count, 
write_buffer_size*dev->interrupt_out_endpoint_size);
if (bytes_to_write < count)
-   dev_warn(>intf->dev, "Write buffer overflow, %zd bytes 
dropped\n",count-bytes_to_write);
+   dev_warn(>intf->dev, "Write buffer overflow, %zd bytes 
dropped\n", count-bytes_to_write);
dev_dbg(>intf->dev, "%s: count = %zd, bytes_to_write = %zd\n",
__func__, count, bytes_to_write);
 
-- 
2.12.0



[PATCH 3/3] USB: misc: ldusb: Added Space after ',' to fit the coding style

2017-03-03 Thread Milian Reichardt
Added a Space after ',' to get rid of an error message in checkpatch.pl
and improve readability

Signed-of-by: Milian Reichardt 
---
 drivers/usb/misc/ldusb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/misc/ldusb.c b/drivers/usb/misc/ldusb.c
index 2c68e5153539..77b76b468307 100644
--- a/drivers/usb/misc/ldusb.c
+++ b/drivers/usb/misc/ldusb.c
@@ -561,7 +561,7 @@ static ssize_t ld_usb_write(struct file *file, const char 
__user *buffer,
/* write the data into interrupt_out_buffer from userspace */
bytes_to_write = min(count, 
write_buffer_size*dev->interrupt_out_endpoint_size);
if (bytes_to_write < count)
-   dev_warn(>intf->dev, "Write buffer overflow, %zd bytes 
dropped\n",count-bytes_to_write);
+   dev_warn(>intf->dev, "Write buffer overflow, %zd bytes 
dropped\n", count-bytes_to_write);
dev_dbg(>intf->dev, "%s: count = %zd, bytes_to_write = %zd\n",
__func__, count, bytes_to_write);
 
-- 
2.12.0