diff options
-rw-r--r-- | drivers/dahdi/xpp/xbus-core.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/dahdi/xpp/xbus-core.c b/drivers/dahdi/xpp/xbus-core.c index 1f60920..92ae121 100644 --- a/drivers/dahdi/xpp/xbus-core.c +++ b/drivers/dahdi/xpp/xbus-core.c @@ -940,8 +940,7 @@ static void xbus_free_ddev(xbus_t *xbus) { if (!xbus->ddev) return; - if (xbus->ddev->devicetype) - kfree(xbus->ddev->devicetype); + kfree(xbus->ddev->devicetype); /* NULL is safe */ xbus->ddev->devicetype = NULL; xbus->ddev->location = NULL; xbus->ddev->hardware_id = NULL; |