aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorUrsula Braun <ursula.braun@de.ibm.com>2012-11-18 21:46:47 -0500
committerDavid S. Miller <davem@davemloft.net>2012-11-19 14:19:00 -0500
commit569743e49364bbf48937c39cb86a2aaf191828d7 (patch)
treea9f5950685c778bc2c87fed811442e88c3b44955 /drivers/s390
parentbfd2eb3b4af1d5b80c9d0411af81b5f36cc51085 (diff)
claw: remove BUG_ONs
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>
Diffstat (limited to 'drivers/s390')
-rw-r--r--drivers/s390/net/claw.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/net/claw.c b/drivers/s390/net/claw.c
index a0a4afe537d0..5c70a6599578 100644
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -3018,10 +3018,8 @@ claw_remove_device(struct ccwgroup_device *cgdev)
3018{ 3018{
3019 struct claw_privbk *priv; 3019 struct claw_privbk *priv;
3020 3020
3021 BUG_ON(!cgdev);
3022 CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cgdev->dev)); 3021 CLAW_DBF_TEXT_(2, setup, "%s", dev_name(&cgdev->dev));
3023 priv = dev_get_drvdata(&cgdev->dev); 3022 priv = dev_get_drvdata(&cgdev->dev);
3024 BUG_ON(!priv);
3025 dev_info(&cgdev->dev, " will be removed.\n"); 3023 dev_info(&cgdev->dev, " will be removed.\n");
3026 if (cgdev->state == CCWGROUP_ONLINE) 3024 if (cgdev->state == CCWGROUP_ONLINE)
3027 claw_shutdown_device(cgdev); 3025 claw_shutdown_device(cgdev);