From ab601be466e3e2a81d2d3e2c123c00bab8322972 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Simon=20Sandstr=C3=B6m?= Date: Tue, 7 Feb 2017 12:02:43 +0100 Subject: [PATCH] staging: bcm2835-audio: Rewrite comparison to NULL MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Fixes checkpatch check "Comparison to NULL could be written '!chip'". Signed-off-by: Simon Sandström Signed-off-by: Greg Kroah-Hartman --- drivers/staging/bcm2835-audio/bcm2835.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c index de315a1..5bdc590 100644 --- a/drivers/staging/bcm2835-audio/bcm2835.c +++ b/drivers/staging/bcm2835-audio/bcm2835.c @@ -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; -- 2.7.4