Re: [PATCH] afs: Merge preference rule failure condition

From: David Howells
Date: Mon Jan 06 2025 - 08:48:49 EST


Lizhi Xu <lizhi.xu@xxxxxxxxxxxxx> wrote:

> argc = afs_split_string(&buf, argv, ARRAY_SIZE(argv));
> - if (argc < 0)
> - return argc;
> if (argc < 2)
> goto inval;

I think this needs to be slightly different. afs_split_string() will print
error messages and can return an error code, so we should go with that and set
ret to argc and go to done, not inval.

David