summaryrefslogtreecommitdiffstats
path: root/drivers/s390
diff options
context:
space:
mode:
authorUrsula Braun <ursula.braun@de.ibm.com>2012-11-19 02:46:47 +0000
committerDavid S. Miller <davem@davemloft.net>2012-11-19 14:19:00 -0500
commit569743e49364bbf48937c39cb86a2aaf191828d7 (patch)
treea9f5950685c778bc2c87fed811442e88c3b44955 /drivers/s390
parentbfd2eb3b4af1d5b80c9d0411af81b5f36cc51085 (diff)
downloadop-kernel-dev-569743e49364bbf48937c39cb86a2aaf191828d7.zip
op-kernel-dev-569743e49364bbf48937c39cb86a2aaf191828d7.tar.gz
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 a0a4afe..5c70a65 100644
--- a/drivers/s390/net/claw.c
+++ b/drivers/s390/net/claw.c
@@ -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);
OpenPOWER on IntegriCloud