[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <87r5pi91u8.fsf@gmail.com>
Date: Thu, 21 Jan 2010 20:54:07 -0800
From: Don Mullis <don.mullis@...il.com>
To: Olaf Titz <olaf@...red.inka.de>
Cc: linux-kernel@...r.kernel.org
Subject: Re: [PATCH 2/2] lib: revise list_sort() comment
Olaf Titz <olaf@...red.inka.de> writes:
>> + * The comparison function @cmp must return a negative value if @a
>> + * should sort before @b, and a positive value if @a should sort after
>> + * @b. If @a and @b are equivalent, and their original relative
>> + * ordering is to be preserved, @cmp should return 0; otherwise, the
>> + * return value does not matter.
>
> This "otherwise... does not matter" sounds funny and confusing. Either
> read this as "the return value does not matter if it is neither <0, >0
> or ==0" or "the return value does not matter if the function wants it
> to be ignored". :-)
>
> Just omitting the "otherwise" clause would be clearer.
>
> Olaf
Okay, I will simplify the wording.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists