lkml.org 
[lkml]   [2014]   [Jun]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Sound: Core: fixed assignment in if condition style error in hwdep.c
Date
This is a patch to the hwdep.c file that fixes one instance of
the following error:
ERROR: do not use assignment in if condition

It also, incidentally, fixes one instance of the following warning:
WARNING: line over 80 characters

Signed-off-by: Vincent Heuken <me@vincentheuken.com>
---
sound/core/hwdep.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/sound/core/hwdep.c b/sound/core/hwdep.c
index 69459e5..42d8324 100644
--- a/sound/core/hwdep.c
+++ b/sound/core/hwdep.c
@@ -527,7 +527,9 @@ static void __init snd_hwdep_proc_init(void)
{
struct snd_info_entry *entry;

- if ((entry = snd_info_create_module_entry(THIS_MODULE, "hwdep", NULL)) != NULL) {
+ entry = snd_info_create_module_entry(THIS_MODULE, "hwdep", NULL);
+
+ if (entry != NULL) {
entry->c.text.read = snd_hwdep_proc_read;
if (snd_info_register(entry) < 0) {
snd_info_free_entry(entry);
--
2.0.0


\
 
 \ /
  Last update: 2014-06-20 19:21    [W:0.044 / U:0.580 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site