libmultipath: fix return code of sysfs_get_timeout
PATCH 1/1 libmultipath: fix return code of sysfs_get_timeout
This function should return 1 on success, as the other sysfs_get_XXX functions. The callers actually expect this - therefore timeout values from sysfs are never used.
Signed-off-by Martin Wilck <[email protected]>
--- libmultipath/discovery.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
libmultipath/discovery.c +1 -1
@@ -276,7 +276,7 @@ sysfs_get_timeout(struct path *pp, unsigned int *timeout) } *timeout = t; -return 0 ; +return 1 ; }int
Signature · 1 line
2.15.0