diff options
author | Oliver Neukum <oneukum@suse.com> | 2024-10-07 11:39:48 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-07 12:07:14 +0200 |
commit | 39845764a0ca01a89dca4ff5b4e9d896ee410054 (patch) | |
tree | 54930c26522bbc48195378405291bee859143fc0 | |
parent | Revert "usb: yurex: Replace snprintf() with the safer scnprintf() variant" (diff) | |
download | linux-39845764a0ca01a89dca4ff5b4e9d896ee410054.tar.xz linux-39845764a0ca01a89dca4ff5b4e9d896ee410054.zip |
USB: yurex: kill needless initialization in yurex_read
This prevented the compiler from catching the patch
that broke the driver.
Signed-off-by: Oliver Neukum <oneukum@suse.com>
Link: https://lore.kernel.org/r/20241007094004.242122-2-oneukum@suse.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
-rw-r--r-- | drivers/usb/misc/yurex.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/misc/yurex.c b/drivers/usb/misc/yurex.c index 7c12b937d075..6aebc736a80c 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; |