projects
/
platform
/
upstream
/
multipath-tools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
931be69
)
Remove stale variable in sysfs_attr_get_value
author
Hannes Reinecke
<hare@suse.de>
Thu, 19 Apr 2012 09:09:01 +0000
(11:09 +0200)
committer
Christophe Varoqui
<christophe.varoqui@opensvc.com>
Fri, 20 Apr 2012 17:47:38 +0000
(19:47 +0200)
Signed-off-by: Hannes Reinecke <hare@suse.de>
libmultipath/sysfs.c
patch
|
blob
|
history
diff --git
a/libmultipath/sysfs.c
b/libmultipath/sysfs.c
index
16dce4a
..
13af8a1
100644
(file)
--- a/
libmultipath/sysfs.c
+++ b/
libmultipath/sysfs.c
@@
-287,7
+287,6
@@
size_t sysfs_attr_get_value(const char *devpath, const char *attr_name,
char *attr_value, int attr_len)
{
char path_full[PATH_SIZE];
- const char *path;
struct stat statbuf;
int fd;
ssize_t size;
@@
-303,7
+302,7
@@
size_t sysfs_attr_get_value(const char *devpath, const 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));