]> git.karo-electronics.de Git - linux-beck.git/commitdiff
claw: remove BUG_ONs
authorUrsula Braun <ursula.braun@de.ibm.com>
Mon, 19 Nov 2012 02:46:47 +0000 (02:46 +0000)
committerDavid S. Miller <davem@davemloft.net>
Mon, 19 Nov 2012 19:19:00 +0000 (14:19 -0500)
Remove BUG_ON's in claw driver, since the checked error conditions
are null pointer accesses.

Signed-off-by: Ursula Braun <ursula.braun@de.ibm.com>
Signed-off-by: Frank Blaschka <frank.blaschka@de.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/s390/net/claw.c

index a0a4afe537d079038e02b74e7606b66b0cedcee4..5c70a6599578d6940faff2e1791e89ef4d4b769b 100644 (file)
@@ -3018,10 +3018,8 @@ claw_remove_device(struct ccwgroup_device *cgdev)
 {
        struct claw_privbk *priv;
 
-       BUG_ON(!cgdev);
        CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cgdev->dev));
        priv = dev_get_drvdata(&cgdev->dev);
-       BUG_ON(!priv);
        dev_info(&cgdev->dev, " will be removed.\n");
        if (cgdev->state == CCWGROUP_ONLINE)
                claw_shutdown_device(cgdev);