mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-25 06:03:36 -04:00
staging: bcm2835-audio: Rewrite comparison to NULL
Fixes checkpatch check "Comparison to NULL could be written '!chip'". Signed-off-by: Simon Sandström <simon@nikanor.nu> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
2b48e88571
commit
ab601be466
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue