From d2d0b1445377723f4e985588a77a668aa7cabeca Mon Sep 17 00:00:00 2001 From: Poul-Henning Kamp Date: Sun, 17 Aug 2003 12:06:44 +0000 Subject: [PATCH] It is not an error to have no devices. --- lib/libdevstat/devstat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/libdevstat/devstat.c b/lib/libdevstat/devstat.c index aa635379d4c9..2522755234a6 100644 --- a/lib/libdevstat/devstat.c +++ b/lib/libdevstat/devstat.c @@ -549,7 +549,7 @@ devstat_selectdevs(struct device_selection **dev_select, int *num_selected, int selection_number = 0; int changed = 0, found = 0; - if ((dev_select == NULL) || (devices == NULL) || (numdevs <= 0)) + if ((dev_select == NULL) || (devices == NULL) || (numdevs < 0)) return(-1); /*