aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_configfs.c
diff options
context:
space:
mode:
authorBart Van Assche <bart.vanassche@sandisk.com>2015-04-14 07:00:58 -0400
committerNicholas Bellinger <nab@linux-iscsi.org>2015-05-31 01:42:34 -0400
commit45fb94c2925fc7d9b170f2d148f91556428eaa1d (patch)
tree486055abf3e5d7bdd16178d82cecaad77656ad03 /drivers/target/target_core_configfs.c
parent2fe6e721b575e308d16e37a0beff107cafd5cf9b (diff)
target: Remove set-but-not-used-variables
Detected these variables by building with W=1. Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'drivers/target/target_core_configfs.c')
-rw-r--r--drivers/target/target_core_configfs.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/drivers/target/target_core_configfs.c b/drivers/target/target_core_configfs.c
index fc598c084523..86caeb26f996 100644
--- a/drivers/target/target_core_configfs.c
+++ b/drivers/target/target_core_configfs.c
@@ -1006,8 +1006,8 @@ static ssize_t target_core_dev_pr_store_attr_res_aptpl_metadata(
1006 u64 sa_res_key = 0; 1006 u64 sa_res_key = 0;
1007 u32 mapped_lun = 0, target_lun = 0; 1007 u32 mapped_lun = 0, target_lun = 0;
1008 int ret = -1, res_holder = 0, all_tg_pt = 0, arg, token; 1008 int ret = -1, res_holder = 0, all_tg_pt = 0, arg, token;
1009 u16 port_rpti = 0, tpgt = 0; 1009 u16 tpgt = 0;
1010 u8 type = 0, scope; 1010 u8 type = 0;
1011 1011
1012 if (dev->transport->transport_flags & TRANSPORT_FLAG_PASSTHROUGH) 1012 if (dev->transport->transport_flags & TRANSPORT_FLAG_PASSTHROUGH)
1013 return 0; 1013 return 0;
@@ -1087,7 +1087,6 @@ static ssize_t target_core_dev_pr_store_attr_res_aptpl_metadata(
1087 break; 1087 break;
1088 case Opt_res_scope: 1088 case Opt_res_scope:
1089 match_int(args, &arg); 1089 match_int(args, &arg);
1090 scope = (u8)arg;
1091 break; 1090 break;
1092 case Opt_res_all_tg_pt: 1091 case Opt_res_all_tg_pt:
1093 match_int(args, &arg); 1092 match_int(args, &arg);
@@ -1127,7 +1126,6 @@ static ssize_t target_core_dev_pr_store_attr_res_aptpl_metadata(
1127 break; 1126 break;
1128 case Opt_port_rtpi: 1127 case Opt_port_rtpi:
1129 match_int(args, &arg); 1128 match_int(args, &arg);
1130 port_rpti = (u16)arg;
1131 break; 1129 break;
1132 case Opt_target_lun: 1130 case Opt_target_lun:
1133 match_int(args, &arg); 1131 match_int(args, &arg);