[PATCH] Cset exclude: dsteklof@us.ibm.com|ChangeSet|20031126173159|56255
This commit is contained in:
parent
bfd8a5d0f7
commit
bc1530c65c
|
@ -28,7 +28,6 @@ static int confirm_device_bus(struct sysfs_device *dev,
|
||||||
{
|
{
|
||||||
struct sysfs_link *devlink = NULL;
|
struct sysfs_link *devlink = NULL;
|
||||||
unsigned char devpath[SYSFS_PATH_MAX];
|
unsigned char devpath[SYSFS_PATH_MAX];
|
||||||
unsigned char *s = NULL;
|
|
||||||
int result = 0;
|
int result = 0;
|
||||||
|
|
||||||
if (busname == NULL || bus_id == NULL)
|
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)
|
if (sysfs_get_mnt_path(devpath, SYSFS_PATH_MAX) != 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
s = &devpath[strlen(devpath)-1];
|
|
||||||
if (strncmp(s, "/", 1) == 0)
|
|
||||||
*s = '\0';
|
|
||||||
strcat(devpath, SYSFS_BUS_DIR);
|
strcat(devpath, SYSFS_BUS_DIR);
|
||||||
strcat(devpath, "/");
|
strcat(devpath, "/");
|
||||||
strcat(devpath, busname);
|
strcat(devpath, busname);
|
||||||
|
|
Loading…
Reference in New Issue