From: Ursula Braun Date: Mon, 19 Nov 2012 02:46:47 +0000 (+0000) Subject: claw: remove BUG_ONs X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=569743e49364bbf48937c39cb86a2aaf191828d7;p=linux-beck.git 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 Signed-off-by: Frank Blaschka Signed-off-by: David S. Miller --- 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) { 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);