Blob Blame Raw
From 21a7923de5b2f968643c2ffd96e5c9fb1b201fa3 Mon Sep 17 00:00:00 2001
From: Hannes Reinecke <hare@suse.de>
Date: Tue, 1 Jul 2014 11:14:26 +0200
Subject: [PATCH] Remove unused variable 'path'

Signed-off-by: Hannes Reinecke <hare@suse.de>
---
 usr/sysfs.c | 2 --
 1 file changed, 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));
-- 
1.9.3