X-Git-Url: https://repo.jachan.dev/J-linux.git/blobdiff_plain/79e178a57dae819ae724065b47c25720494cc9f2..e89c8323b3f19a964453f9bb99a1ae2fdf63f9ed:/drivers/fpga/fpga-mgr.c diff --git a/drivers/fpga/fpga-mgr.c b/drivers/fpga/fpga-mgr.c index e05104f5e40c..f38bab01432e 100644 --- a/drivers/fpga/fpga-mgr.c +++ b/drivers/fpga/fpga-mgr.c @@ -581,10 +581,8 @@ struct fpga_manager *fpga_mgr_create(struct device *dev, const char *name, return NULL; id = ida_simple_get(&fpga_mgr_ida, 0, 0, GFP_KERNEL); - if (id < 0) { - ret = id; + if (id < 0) goto error_kfree; - } mutex_init(&mgr->ref_mutex);