]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
usb: usbtmc: Remove unnecessary local variable from usbtmc_ioctl_request
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 18 Sep 2025 15:13:22 +0000 (17:13 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 13 Oct 2025 07:11:49 +0000 (09:11 +0200)
commit6e26324df8880beddc5280137693116b6ac059ac
tree99d23040a8d8c09686d761342f27dbb610331ecf
parentb61cb4419e432e459d5c7f900b0eb24139a859ce
usb: usbtmc: Remove unnecessary local variable from usbtmc_ioctl_request

The local variable 'res' is only used to temporary store the results of
calling copy_from_user() and copy_to_user(). Use the results directly
and remove the local variable.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://lore.kernel.org/r/20250918151328.331015-1-thorsten.blum@linux.dev
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/class/usbtmc.c