summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHannes Reinecke <hare@suse.de>2014-07-01 11:14:26 +0200
committerMike Christie <michaelc@cs.wisc.edu>2014-09-04 18:15:05 -0500
commit21a7923de5b2f968643c2ffd96e5c9fb1b201fa3 (patch)
treea89580181f09a76d7cf27bd965d5bef810bfd8de
parent96eaaacaeac39625508e6ec8022bb5e565c36a7c (diff)
downloadopen-iscsi-21a7923de5b2f968643c2ffd96e5c9fb1b201fa3.tar.gz
Remove unused variable 'path'
Signed-off-by: Hannes Reinecke <hare@suse.de>
-rw-r--r--usr/sysfs.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/usr/sysfs.c b/usr/sysfs.c
index 7f31c1a..d00c925 100644
--- a/usr/sysfs.c
+++ b/usr/sysfs.c
@@ -671,7 +671,6 @@ int sysfs_set_param(char *id, char *subsys, char *attr_name,
char devpath[PATH_SIZE];
size_t sysfs_len;
char path_full[PATH_SIZE];
- const char *path;
int rc = 0, fd;
if (!sysfs_lookup_devpath_by_subsys_id(devpath, sizeof(devpath),
@@ -684,7 +683,6 @@ int sysfs_set_param(char *id, char *subsys, char *attr_name,
sysfs_len = strlcpy(path_full, sysfs_path, sizeof(path_full));
if(sysfs_len >= sizeof(path_full))
sysfs_len = sizeof(path_full) - 1;
- path = &path_full[sysfs_len];
strlcat(path_full, devpath, sizeof(path_full));
strlcat(path_full, "/", sizeof(path_full));
strlcat(path_full, attr_name, sizeof(path_full));