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>
This commit is contained in:
parent
bfd2eb3b4a
commit
569743e493
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue