diff options
author | greg@kroah.com <greg@kroah.com> | 2003-12-02 00:47:52 -0800 |
---|---|---|
committer | Greg KH <gregkh@suse.de> | 2005-04-26 21:13:04 -0700 |
commit | bc1530c65c282e27eb60de797291ca45c2d8cda2 (patch) | |
tree | b206a7f5fa2860f6d029534346f2ac25696d2629 /libsysfs | |
parent | bfd8a5d0f7361b6cb396eee7cdd686138ecd2066 (diff) |
[PATCH] Cset exclude: dsteklof@us.ibm.com|ChangeSet|20031126173159|56255
Diffstat (limited to 'libsysfs')
-rw-r--r-- | libsysfs/sysfs_device.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/libsysfs/sysfs_device.c b/libsysfs/sysfs_device.c index 2a5353e6f7..fbd046f229 100644 --- a/libsysfs/sysfs_device.c +++ b/libsysfs/sysfs_device.c @@ -28,7 +28,6 @@ static int confirm_device_bus(struct sysfs_device *dev, { struct sysfs_link *devlink = NULL; unsigned char devpath[SYSFS_PATH_MAX]; - unsigned char *s = NULL; int result = 0; if (busname == NULL || bus_id == NULL) @@ -37,9 +36,6 @@ static int confirm_device_bus(struct sysfs_device *dev, if (sysfs_get_mnt_path(devpath, SYSFS_PATH_MAX) != 0) return -1; - s = &devpath[strlen(devpath)-1]; - if (strncmp(s, "/", 1) == 0) - *s = '\0'; strcat(devpath, SYSFS_BUS_DIR); strcat(devpath, "/"); strcat(devpath, busname); |