Skip to contentSkip to conversation

USB: gadget: udc: pxa27x_udc: no need to check return value of debugfs_create functions

PATCH New Robert Jarzmik 1 participant 1 message May 29, 2018 USB

lore
Share & tools
lore
#0 lore raw

PATCH 20/22 USB: gadget: udc: pxa27x_udc: no need to check return value of debugfs_create functions

Quoted 4 lines · Greg Kroah-Hartman

When calling debugfs functions, there is no need to ever check the return value. The function can work or not, but the code logic should never do something different based on this.

Quoted 8 lines

There is also no need to keep the file dentries around at all, so remove those variables from the device structure.

Cc Daniel Mack <[email protected]>
Cc Haojian Zhuang <[email protected]>
Cc Robert Jarzmik <[email protected]>
Cc Felipe Balbi <[email protected]>

Cheers.
---
Robert
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html