drivers/hsi/controllers/omap_ssi{,_port}.c: fix failure checks
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Thu, 17 Jul 2014 13:53:54 +0000 (16:53 +0300)
committerSebastian Reichel <sre@kernel.org>
Thu, 17 Jul 2014 20:45:28 +0000 (22:45 +0200)
commitb74d4954ae6a6799f7ee832bc377795ab506f4b1
treee2246eadf907336db00ef020c6df0c1509bbd872
parentb357d7b58f379ebe8038cd97b6204f2f5c52220d
drivers/hsi/controllers/omap_ssi{,_port}.c: fix failure checks

1.

[linux-3.16-rc5/drivers/hsi/controllers/omap_ssi.c:357]: (style) Checking if
unsigned variable 'gdd_irq' is less than zero.

Source code is

    omap_ssi->gdd_irq = platform_get_irq_byname(pd, "gdd_mpu");
    if (omap_ssi->gdd_irq < 0) {

2.

[linux-3.16-rc5/drivers/hsi/controllers/omap_ssi_port.c:1017]: (style) Checking
if unsigned variable 'irq' is less than zero.

Source code is

    omap_port->irq = platform_get_irq(pd, 0);
    if (omap_port->irq < 0) {

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=80441
Reported-by: David Binderman <dcb314@hotmail.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/hsi/controllers/omap_ssi.c
drivers/hsi/controllers/omap_ssi_port.c