]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
media: flexcop-usb: clean up endpoint sanity checks
authorJohan Hovold <johan@kernel.org>
Mon, 22 Aug 2022 15:14:54 +0000 (17:14 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 16 Jun 2024 11:39:44 +0000 (13:39 +0200)
commit061057a9499701dc9299c4ccc295ede5d61a9974
treee8b9aa88fe12877c24cb0e5cd054ea2bdb1e549c
parentf99809fdeb50d65bcbc1661ef391af94eebb8a75
media: flexcop-usb: clean up endpoint sanity checks

[ Upstream commit 3de50478b5cc2e0c2479a5f2b967f331f7597d23 ]

Add a temporary variable to make the endpoint sanity checks a bit more
readable.

While at it, fix a typo in the usb_set_interface() comment.

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20220822151456.27178-2-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Stable-dep-of: f62dc8f6bf82 ("media: flexcop-usb: fix sanity check of bNumEndpoints")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/media/usb/b2c2/flexcop-usb.c