diff options
Diffstat (limited to 'drivers/fpga/fpga-mgr.c')
-rw-r--r-- | drivers/fpga/fpga-mgr.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index 223f2401939b..9939d2cbc9a6 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c | |||
@@ -412,8 +412,6 @@ static struct fpga_manager *__fpga_mgr_get(struct device *dev) | |||
412 | struct fpga_manager *mgr; | 412 | struct fpga_manager *mgr; |
413 | 413 | ||
414 | mgr = to_fpga_manager(dev); | 414 | mgr = to_fpga_manager(dev); |
415 | if (!mgr) | ||
416 | goto err_dev; | ||
417 | 415 | ||
418 | if (!try_module_get(dev->parent->driver->owner)) | 416 | if (!try_module_get(dev->parent->driver->owner)) |
419 | goto err_dev; | 417 | goto err_dev; |