Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1578416
| From | Abhijit Naik <abhijitnaik27@gmail.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] staging: bcm2835-audio: Fixed initialization of global to "false" |
| Date | 2017-02-10 13:10 +0100 |
| Message-ID | <t9ibw-3dS-3@gated-at.bofh.it> (permalink) |
| Organization | linux.* mail to news gateway |
bcm2835-vchiq.c:
fixing ERROR: do not initialise globals to false
Instead of explicitly initializing global variable force_bulk to "false",
declared force_bulk as static variable.
Signed-off-by: Abhijit Naik <abhijitnaik27@gmail.com>
---
drivers/staging/bcm2835-audio/bcm2835-vchiq.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
index 9ac1f72a178e..5f3d89fbb73c 100644
--- a/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
+++ b/drivers/staging/bcm2835-audio/bcm2835-vchiq.c
@@ -65,7 +65,7 @@ struct bcm2835_audio_instance {
short peer_version;
};
-bool force_bulk = false;
+static bool force_bulk;
/* ---- Private Variables ---------------------------------------------------- */
--
2.11.0
Back to linux.kernel | Previous | Next | Find similar | Unroll thread
[PATCH] staging: bcm2835-audio: Fixed initialization of global to "false" Abhijit Naik <abhijitnaik27@gmail.com> - 2017-02-10 13:10 +0100
csiph-web