Message ID | 20221110175236.32094-2-pvorel@suse.cz |
---|---|
State | Accepted |
Headers | show |
Series | tst_find_backing_dev() fixes | expand |
Hello, Petr Vorel <pvorel@suse.cz> writes: > Fixes: e1b1ae66b ("tst_find_backing_dev: Get dev name from /sys/dev/block/*/uevent") > > Signed-off-by: Petr Vorel <pvorel@suse.cz> Yup, my mistake. Acked-by: Richard Palethorpe <rpalethorpe@suse.com> > --- > Hi, > > obviously correct, but not merging it without ack there are changes and > function is actually needed. > > Kind regards, > Petr > > lib/tst_device.c | 10 ---------- > 1 file changed, 10 deletions(-) > > diff --git a/lib/tst_device.c b/lib/tst_device.c > index db5c2ab8f..48d7e3ab6 100644 > --- a/lib/tst_device.c > +++ b/lib/tst_device.c > @@ -510,16 +510,6 @@ unsigned long tst_dev_bytes_written(const char *dev) > return dev_bytes_written; > } > > -static int count_match_len(const char *first, const char *second) > -{ > - int len = 0; > - > - while (*first && *first++ == *second++) > - len++; > - > - return len; > -} > - > __attribute__((nonnull)) > void tst_find_backing_dev(const char *path, char *dev) > {
diff --git a/lib/tst_device.c b/lib/tst_device.c index db5c2ab8f..48d7e3ab6 100644 --- a/lib/tst_device.c +++ b/lib/tst_device.c @@ -510,16 +510,6 @@ unsigned long tst_dev_bytes_written(const char *dev) return dev_bytes_written; } -static int count_match_len(const char *first, const char *second) -{ - int len = 0; - - while (*first && *first++ == *second++) - len++; - - return len; -} - __attribute__((nonnull)) void tst_find_backing_dev(const char *path, char *dev) {
Fixes: e1b1ae66b ("tst_find_backing_dev: Get dev name from /sys/dev/block/*/uevent") Signed-off-by: Petr Vorel <pvorel@suse.cz> --- Hi, obviously correct, but not merging it without ack there are changes and function is actually needed. Kind regards, Petr lib/tst_device.c | 10 ---------- 1 file changed, 10 deletions(-)