Message ID | 1465389066-19119-9-git-send-email-hch@lst.de (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Looks good.
Reviewed-by: Ming Lin <ming.l@samsung.com>
--
To unsubscribe from this list: send the line "unsubscribe linux-block" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
diff --git a/drivers/nvme/target/configfs.c b/drivers/nvme/target/configfs.c index aebe646..9bed302 100644 --- a/drivers/nvme/target/configfs.c +++ b/drivers/nvme/target/configfs.c @@ -736,7 +736,7 @@ static struct config_group *nvmet_referral_make( struct nvmet_port *port; port = kzalloc(sizeof(*port), GFP_KERNEL); - if (IS_ERR(port)) + if (!port) return ERR_CAST(port); INIT_LIST_HEAD(&port->entry); @@ -793,7 +793,7 @@ static struct config_group *nvmet_ports_make(struct config_group *group, return ERR_PTR(-EINVAL); port = kzalloc(sizeof(*port), GFP_KERNEL); - if (IS_ERR(port)) + if (!port) return ERR_CAST(port); INIT_LIST_HEAD(&port->entry);