video: fbdev: delete redundant printing of return value
PATCH 1/1 video: fbdev: delete redundant printing of return value
platform_get_irq() has already checked and printed the return value, the printing here is nothing special, it is not necessary at all.
Signed-off-by Wang Qing <[email protected]>
--- drivers/video/fbdev/pxa168fb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/video/fbdev/pxa168fb.c +1 -3
@@ -618,10 +618,8 @@ static int pxa168fb_probe(struct platform_device *pdev) } irq =platform_get_irq (pdev,0 ); -if (irq <0 ) { -dev_err (&pdev->dev,"no IRQ defined\n" ); +if (irq <0 )return -ENOENT ; - } info =framebuffer_alloc (sizeof (struct pxa168fb_info ), &pdev->dev);if (info ==NULL ) {
Signature · 1 line
2.7.4