aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/scsi/scsi_tgt_lib.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/scsi/scsi_tgt_lib.c b/drivers/scsi/scsi_tgt_lib.c
index a0f308bd145b..ee8496aa0336 100644
--- a/drivers/scsi/scsi_tgt_lib.c
+++ b/drivers/scsi/scsi_tgt_lib.c
@@ -621,9 +621,7 @@ static int __init scsi_tgt_init(void)
621{ 621{
622 int err; 622 int err;
623 623
624 scsi_tgt_cmd_cache = kmem_cache_create("scsi_tgt_cmd", 624 scsi_tgt_cmd_cache = KMEM_CACHE(scsi_tgt_cmd, 0);
625 sizeof(struct scsi_tgt_cmd),
626 0, 0, NULL);
627 if (!scsi_tgt_cmd_cache) 625 if (!scsi_tgt_cmd_cache)
628 return -ENOMEM; 626 return -ENOMEM;
629 627