diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/kernel-install.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kernel-install.c b/scripts/kernel-install.c index 459b45d864..d943f0288f 100644 --- a/scripts/kernel-install.c +++ b/scripts/kernel-install.c @@ -1026,7 +1026,7 @@ static int do_remove_kernel(void) do_list_entries(); printf("which kernel do you like to remove?\n"); ret = getline(&input, &insize, stdin); - if (ret) + if (ret < 0) return -errno; if (!strlen(input)) return -EINVAL; |