diff mbox series

[2/2] USB: yurex: kill needless initialization in yurex_read

Message ID 20241007094004.242122-2-oneukum@suse.com (mailing list archive)
State Accepted
Commit 39845764a0ca01a89dca4ff5b4e9d896ee410054
Headers show
Series [1/2] Revert "usb: yurex: Replace snprintf() with the safer scnprintf() variant" | expand

Commit Message

Oliver Neukum Oct. 7, 2024, 9:39 a.m. UTC
This prevented the compiler from catching the patch
that broke the driver.

Signed-off-by: Oliver Neukum <oneukum@suse.com>
---
 drivers/usb/misc/yurex.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c
index bd94bf078de3..70dff0db5354 100644
--- a/drivers/usb/misc/yurex.c
+++ b/drivers/usb/misc/yurex.c
@@ -400,7 +400,7 @@  static ssize_t yurex_read(struct file *file, char __user *buffer, size_t count,
 			  loff_t *ppos)
 {
 	struct usb_yurex *dev;
-	int len = 0;
+	int len;
 	char in_buffer[20];
 	unsigned long flags;