public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
* [PATCH] bcm2835-audio: Fix checkpatch errors
@ 2017-02-11 20:34 Man Choy
  2017-02-12 12:16 ` Greg Kroah-Hartman
  0 siblings, 1 reply; 5+ messages in thread
From: Man Choy @ 2017-02-11 20:34 UTC (permalink / raw)
  To: linux-arm-kernel

Fix following errors:

ERROR: do not initialise statics to NULL
+static struct snd_card *g_card = NULL;

ERROR: do not initialise statics to NULL
+static struct bcm2835_chip *g_chip = NULL;

Signed-off-by: Man Choy <manchoyy@gmail.com>
---
 drivers/staging/bcm2835-audio/bcm2835.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/bcm2835-audio/bcm2835.c b/drivers/staging/bcm2835-audio/bcm2835.c
index a84d74d..265fe55 100644
--- a/drivers/staging/bcm2835-audio/bcm2835.c
+++ b/drivers/staging/bcm2835-audio/bcm2835.c
@@ -28,8 +28,8 @@
  * to debug if we run into issues
  */
 
-static struct snd_card *g_card = NULL;
-static struct bcm2835_chip *g_chip = NULL;
+static struct snd_card *g_card;
+static struct bcm2835_chip *g_chip;
 
 static int snd_bcm2835_free(struct bcm2835_chip *chip)
 {
-- 
2.7.4

^ permalink raw reply related	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2017-02-14  1:16 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-11 20:34 [PATCH] bcm2835-audio: Fix checkpatch errors Man Choy
2017-02-12 12:16 ` Greg Kroah-Hartman
2017-02-13  0:49   ` Man Choy
2017-02-13 12:03     ` Greg Kroah-Hartman
2017-02-14  1:16       ` Man Choy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox