usb: dwc2: gadget: use existing helper
authorJohn Keeping <john@metanate.com>
Mon, 22 Nov 2021 12:31:07 +0000 (12:31 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 23 Nov 2021 13:13:04 +0000 (14:13 +0100)
commitc4bc515d73b5201d30f78b935accdd9e3988f05e
tree2c3b259e5560061ffd7f3f66a52c18f4db990297
parent5284acccc4a501f38dbeceabaa0340401c107654
usb: dwc2: gadget: use existing helper

All other checks of params.g_dma_desc in this file use the
using_desc_dma() helper function.  Use that helper in two more places
for consistency throughout the file.

Acked-by: Minas Harutyunyan <Minas.Harutyunyan@synopsys.com>
Signed-off-by: John Keeping <john@metanate.com>
Link: https://lore.kernel.org/r/20211122123107.3147353-1-john@metanate.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/dwc2/gadget.c