diff options
author | Guo Zhengkui <guozhengkui@vivo.com> | 2022-04-07 12:04:52 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-04-21 19:03:11 +0200 |
commit | 67ec2c75f37780e0e825d0beb2fb4892c8a93c6a (patch) | |
tree | 5c6cd04c6854dc8cc3ab56bfb18d0e97eb7a69a9 /drivers/bcma/driver_chipcommon_nflash.c | |
parent | usb: gadget: u_audio: clean up some inconsistent indenting (diff) | |
download | linux-67ec2c75f37780e0e825d0beb2fb4892c8a93c6a.tar.xz linux-67ec2c75f37780e0e825d0beb2fb4892c8a93c6a.zip |
usb: gadget: net2280: use swap() instead of open coding it
Address the following coccicheck warning:
drivers/usb/gadget/udc/net2280.c:940:20-21: WARNING opportunity for swap().
drivers/usb/gadget/udc/net2280.c:944:25-26: WARNING opportunity for swap().
by using swap() for the swapping of variable values and drop the tmp
variables (`tmp` and `end`) that are not needed any more.
Signed-off-by: Guo Zhengkui <guozhengkui@vivo.com>
Link: https://lore.kernel.org/r/20220407100459.3605-1-guozhengkui@vivo.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/bcma/driver_chipcommon_nflash.c')
0 files changed, 0 insertions, 0 deletions