]> git.baikalelectronics.ru Git - kernel.git/commit
usb: remove res2 argument from gadget code completions
authorJens Axboe <axboe@kernel.dk>
Sat, 23 Oct 2021 13:52:23 +0000 (07:52 -0600)
committerJens Axboe <axboe@kernel.dk>
Mon, 25 Oct 2021 15:28:38 +0000 (09:28 -0600)
commitc0933a6a79e0d9de2c449b37400c39fc01eb95df
tree2532d9321a09daf301b46b6fce6ac656416c4f02
parent719904959275d74247316a3d98e479a110dfb298
usb: remove res2 argument from gadget code completions

The USB gadget code is the only code that every tried to utilize the
2nd argument of the aio completions, but there are strong suspicions
that it was never actually used by anything on the userspace side.

Out of the 3 cases that touch it, two of them just pass in the same
as res, and the last one passes in error/transfer in res like any
other normal use case.

Remove the 2nd argument, pass 0 like the rest of the in-kernel users
of kiocb based IO.

Link: https://lore.kernel.org/linux-block/20211021174021.273c82b1.john@metanate.com/
Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>
drivers/usb/gadget/function/f_fs.c
drivers/usb/gadget/legacy/inode.c