[PATCH resend] hwrng: imx-rngc - irq already prints an error

2020-10-28 Thread Nigel Christian
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

[PATCH] hwrng: imx-rngc - platform_get_irq() already prints an error

2020-10-18 Thread Nigel Christian
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