usb: gadget: configfs: Fix set but not used variable warning
authorDaniel Scally <dan.scally@ideasonboard.com>
Thu, 9 Feb 2023 09:43:59 +0000 (09:43 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Feb 2023 11:12:47 +0000 (12:12 +0100)
commit8488a831e0c4d59528d20713a14cb8958af15bfe
treebb621a2b2a3d9f1c43b0d7d9e6cc0037e9329efe
parent88e054e8df1db32cea4ccb911b67dba22f1ddfa2
usb: gadget: configfs: Fix set but not used variable warning

Fix a -Wunused-but-set-variable warning in gadget_string_s_store()

Fixes: 15a7cf8caabe ("usb: gadget: configfs: Support arbitrary string descriptors")
Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Link: https://lore.kernel.org/r/20230209094359.1549629-1-dan.scally@ideasonboard.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/configfs.c