From: Ursula Braun Date: Mon, 19 Nov 2012 02:46:47 +0000 (+0000) Subject: claw: remove BUG_ONs X-Git-Tag: MMI-PSA29.97-13-9~15401^2~274 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=569743e49364bbf48937c39cb86a2aaf191828d7;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.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);