usb: gadget: udc: Remove useless variable assignment in xudc_read_fifo()
authorPiyush Mehta <piyush.mehta@xilinx.com>
Fri, 6 May 2022 17:53:49 +0000 (23:23 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 May 2022 11:58:27 +0000 (13:58 +0200)
commitb4b44897ad3f4c1ad4ffe910e7b141c61522726c
treeea96780e33fce27a76be80f21b1dc68afa221b3a
parentb92d8a6e935fbd586397341ac1cb6762b041c6d5
usb: gadget: udc: Remove useless variable assignment in xudc_read_fifo()

This patch removes the unused variables assignment warning.
Value assigned to variable bufferspace is overwritten, before
it can be used. This makes such variable assignment useless.

Reported Coverity warning: UNUSED_VALUE

Signed-off-by: Piyush Mehta <piyush.mehta@xilinx.com>
Link: https://lore.kernel.org/r/20220506175349.10102-1-piyush.mehta@xilinx.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/gadget/udc/udc-xilinx.c