summaryrefslogtreecommitdiff
path: root/drivers/s390/net/ctcm_main.c
diff options
context:
space:
mode:
authorUrsula Braun <ursula.braun@de.ibm.com>2012-11-19 02:46:46 (GMT)
committerDavid S. Miller <davem@davemloft.net>2012-11-19 19:19:00 (GMT)
commitbfd2eb3b4af1d5b80c9d0411af81b5f36cc51085 (patch)
treeb408cd04d039f8750341508d0d4500d84550ad75 /drivers/s390/net/ctcm_main.c
parent7bf9bcff45537aad3c71f7f3a4d93e90f3d3d077 (diff)
downloadlinux-bfd2eb3b4af1d5b80c9d0411af81b5f36cc51085.tar.xz
ctcm: remove BUG_ONs
Remove BUG_ON's in ctcm 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/net/ctcm_main.c')
-rw-r--r--drivers/s390/net/ctcm_main.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/s390/net/ctcm_main.c b/drivers/s390/net/ctcm_main.c
index 98ea9cc..817b689 100644
--- a/drivers/s390/net/ctcm_main.c
+++ b/drivers/s390/net/ctcm_main.c
@@ -1691,8 +1691,6 @@ static void ctcm_remove_device(struct ccwgroup_device *cgdev)
{
struct ctcm_priv *priv = dev_get_drvdata(&cgdev->dev);
- BUG_ON(priv == NULL);
-
CTCM_DBF_TEXT_(SETUP, CTC_DBF_INFO,
"removing device %p, proto : %d",
cgdev, priv->protocol);