USB: gadget: Use ERR_PTR/IS_ERR
authorJulia Lawall <julia@diku.dk>
Wed, 9 Dec 2009 13:23:32 +0000 (14:23 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 23 Dec 2009 19:34:10 +0000 (11:34 -0800)
commitff3b968ceeb73c037cf4759d21923943970f9a7a
treef45c5dbe56edaaba3a32c4a479910d721d25cbd9
parentda307123c621b01cce147a4be313d8a754674f63
USB: gadget: Use ERR_PTR/IS_ERR

Use ERR_PTR and IS_ERR rather than mixing integers and pointers.

The semantic match that finds this problem is as follows:
(http://coccinelle.lip6.fr/)

// <smpl>
@@
expression *E;
@@

* E < 0
// </smpl>

Signed-off-by: Julia Lawall <julia@diku.dk>
Acked-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/gadget/f_audio.c