usb: gadget: f_uac2: Neaten and reduce size of afunc_validate_opts
authorJoe Perches <joe@perches.com>
Wed, 2 Feb 2022 11:27:53 +0000 (03:27 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Feb 2022 14:52:50 +0000 (15:52 +0100)
commit2dac5d2864af6dd86c529cb9c995a6f3ea09b6a7
tree22245f3d704c17e9742ac72131a2896a90847f90
parent9d19d966b4cb073bf519d48ba53c33240ac87ce1
usb: gadget: f_uac2: Neaten and reduce size of afunc_validate_opts

Remove the repetition and reduce the object size a bit.

$ size drivers/usb/gadget/function/f_uac2.o* (x86-64 defconfig with gadget)
   text    data     bss     dec     hex filename
  24515    3136      16   27667    6c13 drivers/usb/gadget/function/f_uac2.o.new
  24817    3136      16   27969    6d41 drivers/usb/gadget/function/f_uac2.o.old

Signed-off-by: Joe Perches <joe@perches.com>
Link: https://lore.kernel.org/r/2132d97ca8d4dd5ac9426cc23af95e819079b02c.camel@perches.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/function/f_uac2.c