Clean up the check for irq. dev_err() is superfluous as
platform_get_irq() already prints an error. Check for zero
would indicate a bug. Remove curly braces to conform to
styling requirements.
Signed-off-by: Nigel Christian
---
drivers/char/hw_random/imx-rngc.c | 4 +---
1 file changed, 1
There is no need to call the dev_err() function directly to print
a custom message when handling an error from platform_get_irq()
as it prints the appropriate message in the event of a failure.
Change suggested via coccicheck report.
Signed-off-by: Nigel Christian
---
drivers/char/hw_random/imx