]> www.infradead.org Git - users/jedix/linux-maple.git/commit
staging: emxx_udc: use min helper macro for variable comparison
authorDeepak R Varma <drv@mailo.com>
Sun, 6 Nov 2022 10:21:58 +0000 (15:51 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Nov 2022 15:26:58 +0000 (16:26 +0100)
commitf6f213ba49107be5ea2e4aad9ffea9e844c58a2a
tree0db66f5ff9768d20e49fdea1059d3fa3def0b02e
parent11454ddeb2f68a1c03b90f0c2bba18570f1a3019
staging: emxx_udc: use min helper macro for variable comparison

Simplify code by using min helper macros in place of lengthy if/else
block oriented logical evaluation and value assignment. This issue is
identified by coccicheck using the minmax.cocci file.

Signed-off-by: Deepak R Varma <drv@mailo.com>
Link: https://lore.kernel.org/r/Y2eKxoUWtbPY/88b@qemulion
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/emxx_udc/emxx_udc.c