Skip to content

Commit

Permalink
scsi: tcmu: Don't pass KERN_ERR to pr_err
Browse files Browse the repository at this point in the history
Fix warning:

smatch warnings:
drivers/target/target_core_user.c:301 tcmu_genl_cmd_done() warn: KERN_*
level not at start of string

Signed-off-by: Mike Christie <mchristi@redhat.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
  • Loading branch information
Mike Christie authored and Martin K. Petersen committed Jun 26, 2018
1 parent 3287286 commit 0c218e1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/target/target_core_user.c
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ static int tcmu_genl_cmd_done(struct genl_info *info, int completed_cmd)
}

if (!udev) {
pr_err(KERN_ERR "tcmu nl cmd %u/%d completion could not find device with dev id %u.\n",
pr_err("tcmu nl cmd %u/%d completion could not find device with dev id %u.\n",
completed_cmd, rc, dev_id);
ret = -ENODEV;
goto unlock;
Expand Down

0 comments on commit 0c218e1

Please sign in to comment.