diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2009-02-27 20:49:46 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2009-04-03 14:54:25 -0700 |
commit | 536165d8ef6933131bf7166338eafa77b75f8bb7 (patch) | |
tree | bd810f758fbf318006712ff8b266cd29be24e5c7 /drivers/staging/line6/audio.c | |
parent | b702ed253d33d056987e92299687d8ed85195896 (diff) | |
download | op-kernel-dev-536165d8ef6933131bf7166338eafa77b75f8bb7.zip op-kernel-dev-536165d8ef6933131bf7166338eafa77b75f8bb7.tar.gz |
Staging: line6: fix up NULL assignment mistakes
Should use NULL for a pointer, not 0, otherwise sparse complains.
Cc: Markus Grabner <grabner@icg.tugraz.at>
Cc: Mariusz Kozlowski <m.kozlowski@tuxland.pl>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/staging/line6/audio.c')
-rw-r--r-- | drivers/staging/line6/audio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/staging/line6/audio.c b/drivers/staging/line6/audio.c index d035420..37f759a 100644 --- a/drivers/staging/line6/audio.c +++ b/drivers/staging/line6/audio.c @@ -62,10 +62,10 @@ void line6_cleanup_audio(struct usb_line6 *line6) { struct snd_card *card = line6->card; - if(card == 0) + if (card == NULL) return; snd_card_disconnect(card); snd_card_free(card); - line6->card = 0; + line6->card = NULL; } |