aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_pr.h
diff options
context:
space:
mode:
authorAndy Grover <agrover@redhat.com>2013-05-16 10:40:55 -0700
committerNicholas Bellinger <nab@linux-iscsi.org>2013-06-14 00:04:31 -0700
commitd2843c173ee53cf4c12e7dfedc069a5bc76f0ac5 (patch)
tree36d952a14f5737a88afa759ce4a8d9c4bbd14d86 /drivers/target/target_core_pr.h
parenttarget: Add register_type and preempt_type enums to clarify code (diff)
downloadlinux-dev-d2843c173ee53cf4c12e7dfedc069a5bc76f0ac5.tar.xz
linux-dev-d2843c173ee53cf4c12e7dfedc069a5bc76f0ac5.zip
target: Alter core_pr_dump_initiator_port for ease of use
We use this function exclusively in debug prints. Instead of returning 0 or 1 if isid is present, just set buf to "" if it isn't there. This saves callers from having to check the return value. Signed-off-by: Andy Grover <agrover@redhat.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_pr.h')
-rw-r--r--drivers/target/target_core_pr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/target/target_core_pr.h b/drivers/target/target_core_pr.h
index b4a004247ab2..ed75cdd32cb0 100644
--- a/drivers/target/target_core_pr.h
+++ b/drivers/target/target_core_pr.h
@@ -45,7 +45,7 @@
extern struct kmem_cache *t10_pr_reg_cache;
-extern int core_pr_dump_initiator_port(struct t10_pr_registration *,
+extern void core_pr_dump_initiator_port(struct t10_pr_registration *,
char *, u32);
extern sense_reason_t target_scsi2_reservation_release(struct se_cmd *);
extern sense_reason_t target_scsi2_reservation_reserve(struct se_cmd *);