Commit ab601be4 authored by Simon Sandström's avatar Simon Sandström Committed by Greg Kroah-Hartman

staging: bcm2835-audio: Rewrite comparison to NULL

Fixes checkpatch check "Comparison to NULL could be written '!chip'".
Signed-off-by: default avatarSimon Sandström <simon@nikanor.nu>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2b48e885
......@@ -61,7 +61,7 @@ static int snd_bcm2835_create(struct snd_card *card,
*rchip = NULL;
chip = kzalloc(sizeof(*chip), GFP_KERNEL);
if (chip == NULL)
if (!chip)
return -ENOMEM;
chip->card = card;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment