Re: [PATCH] Sound, Cirrus: Remove redundant check

From: Tabi Timur-B04825
Date: Fri Aug 19 2011 - 20:17:36 EST


On Fri, Aug 19, 2011 at 6:00 PM, Jesper Juhl <jj@xxxxxxxxxxxxx> wrote:
> The variable 'idxp' is a pointer to 'unsigned int', so the value
> obtained when dereferencing it is always greater than or equal to
> 0. Testing this is redundant.

snd_hda_get_conn_index() can return a negative number, so maybe *idxp
should be a pointer to a signed int?

--
Timur Tabi
Linux kernel developer at Freescale
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/