Articles de cet auteur
Apr 30 2015
tty: hvcs.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby CC: Masanari Iida Signed-off-by: Greg Kroah-Hartman — drivers/tty/hvc/hvcs.c | 4 ++– 1 file changed, 2 insertions(+), 2 deletions(-) diff –git a/drivers/tty/hvc/hvcs.c b/drivers/tty/hvc/hvcs.c …
Apr 30 2015
tty: hvc_console.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby CC: Tomoki Sekiyama CC: Benjamin Herrenschmidt Signed-off-by: Greg Kroah-Hartman — drivers/tty/hvc/hvc_console.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff …
Apr 30 2015
tty: crisv10.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Mikael Starvik CC: Jiri Slaby Signed-off-by: Greg Kroah-Hartman Acked-by: Jesper Nilsson — drivers/tty/serial/crisv10.c | 12 ++++++++—- 1 file changed, 8 insertions(+), 4 deletions(-) diff …
Apr 30 2015
tty: consolemap.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby CC: Takashi Iwai CC: Imre Deak Signed-off-by: Greg Kroah-Hartman — drivers/tty/vt/consolemap.c | 60 ++++++++++++++++++++++++++++—————– 1 file changed, 37 insertions(+), 23 deletions(-) diff …
Apr 30 2015
tty: amiserial.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby Signed-off-by: Greg Kroah-Hartman — drivers/tty/amiserial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff –git a/drivers/tty/amiserial.c b/drivers/tty/amiserial.c index 894d3a8..e53d9a5 100644 …
Apr 30 2015
tty: 68328serial.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Jiri Slaby Signed-off-by: Greg Kroah-Hartman — drivers/tty/serial/68328serial.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff –git a/drivers/tty/serial/68328serial.c b/drivers/tty/serial/68328serial.c index 5dc9c4b..748c18f 100644 …
Apr 29 2015
Staging: iop.c: move assignment out of if () block
Author: Greg Kroah-Hartman <gregkh@linuxfoundation.org> We should not be doing assignments within an if () block so fix up the code to not do this. change was created using Coccinelle. CC: Supriya Karanth CC: Somya Anand CC: Alan Cox Signed-off-by: Greg Kroah-Hartman — drivers/staging/i2o/iop.c | 9 ++++++— 1 file changed, 6 insertions(+), 3 deletions(-) diff …
Apr 29 2015
Thermal: Intel SoC: fix simple_return.cocci warnings
Author: Wu Fengguang <fengguang.wu@intel.com> drivers/thermal/intel_soc_dts_iosf.c:358:4-7: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci CC: Srinivas Pandruvada Signed-off-by: Fengguang Wu Signed-off-by: Zhang Rui — drivers/thermal/intel_soc_dts_iosf.c | 7 +—— 1 file changed, 1 insertion(+), 6 deletions(-) diff –git a/drivers/thermal/intel_soc_dts_iosf.c b/drivers/thermal/intel_soc_dts_iosf.c index d897876..42e4b6a 100644 …
Apr 28 2015
iwlwifi: pcie: simplify return value
Author: Emmanuel Grumbach <emmanuel.grumbach@intel.com> This was spot by Coccinelle. Signed-off-by: Emmanuel Grumbach — drivers/net/wireless/iwlwifi/pcie/trans.c | 8 ++—— 1 file changed, 2 insertions(+), 6 deletions(-) diff –git a/drivers/net/wireless/iwlwifi/pcie/trans.c b/drivers/net/wireless/iwlwifi/pcie/trans.c index 5c523a7..a341ed9 100644 — a/drivers/net/wireless/iwlwifi/pcie/trans.c +++ b/drivers/net/wireless/iwlwifi/pcie/trans.c @@ -973,12 +973,8 @@ static int iwl_pcie_load_given_ucode_8000(struct iwl_trans *trans, return ret; /* load to FW the binary sections …
Apr 28 2015
ASoC: adau1977: fix simple_return.cocci warnings
Author: kbuild test robot <fengguang.wu@intel.com> sound/soc/codecs/adau1977.c:496:5-8: WARNING: end returns can be simpified Simplify a trivial if-return sequence. Possibly combine with a preceding function call. Generated by: scripts/coccinelle/misc/simple_return.cocci Signed-off-by: Fengguang Wu Signed-off-by: Mark Brown — sound/soc/codecs/adau1977.c | 5 +—- 1 file changed, 1 insertion(+), 4 deletions(-) diff –git a/sound/soc/codecs/adau1977.c b/sound/soc/codecs/adau1977.c index c5b1b8e..3fb09c1 100644 — a/sound/soc/codecs/adau1977.c …