Skip to contentSkip to conversation

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

PATCH Superseded Greg Kroah-Hartman 1 participant 1 message May 31, 2018 USB

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore

Greg Kroah-Hartman

author maintainer
#0 lore raw

PATCH 17/22 USB: udc: atmel_usba_udc: no need to check return value of debugfs_create functions

Quoted 8 lines · Alexandre Belloni
Quoted 7 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.

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

Quoted 6 lines
Quoted 4 lines
Cc Nicolas Ferre <[email protected]>
Cc Felipe Balbi <[email protected]>
Cc Alexandre Belloni <[email protected]>

Thanks for reviewing this.

greg k-h
---
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