[PATCH] [media] Maxi Radio: Delete an error message for a failed memory allocation in maxiradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 10:15:29 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-maxiradio.c | 4 +--- 1 file changed, 1 inse

[PATCH 0/3] [media] MR800: Adjustments for usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 12:35:43 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete two error messages for a failed memory allocation Improve a size determination Delete an unnecessary variable initialisat

[PATCH 1/3] [media] mr800: Delete two error messages for a failed memory allocation in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:23:53 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-mr800.c | 2 -- 1 file changed, 2 deletions(-)

[PATCH 2/3] [media] mr800: Improve a size determination in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:34:11 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 3/3] [media] mr800: Delete an unnecessary variable initialisation in usb_amradio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 11:39:50 +0200 The variable "retval" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-mr800.c | 2 +- 1 file changed, 1 ins

[PATCH 0/3] [media] WL1273: Adjustments for two function implementations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:05:45 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation Delete an unnecessary goto statement Delete an unnecessary variable initi

[PATCH 1/3] [media] WL1273: Delete an error message for a failed memory allocation in wl1273_fm_radio_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:28:38 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 1 - 1 file changed, 1 deletion(-

[PATCH 2/3] [media] WL1273: Delete an unnecessary goto statement in wl1273_fm_suspend()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:53:22 +0200 * Remove an extra goto statement. * Delete the label "out" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 5 + 1 file changed, 1 insertion(+), 4 deletions(-)

[PATCH 3/3] [media] WL1273: Delete an unnecessary variable initialisation in wl1273_fm_suspend()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 13:55:56 +0200 The local variable "r" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/radio-wl1273.c | 2 +- 1 file changed, 1 insertion(+)

[PATCH 0/3] [media] si470x: Adjustments for si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 15:16:17 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation Improve a size determination Delete an unnecessary variable initialisatio

[PATCH 1/3] [media] si470x: Delete an error message for a failed memory allocation in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:53:49 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/si470x/radio-si470x-usb.c | 1 - 1 file changed, 1

[PATCH 2/3] [media] si470x: Improve a size determination in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 14:58:06 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 3/3] [media] si470x: Delete an unnecessary variable initialisation in si470x_usb_driver_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 15:08:39 +0200 The variable "retval" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/radio/si470x/radio-si470x-usb.c | 2 +- 1 file ch

[PATCH] [media] Si4713: Delete an error message for a failed memory allocation in two functions

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 16:15:44 +0200 Omit an extra message for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/radio/si4713/radio-platform-si4713.c | 1 - drivers/me

[PATCH 0/2] [media] FC0012: Adjustments for fc0012_attach()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 18:03:21 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/media/tuners/fc0012.c | 3 +-- 1 file

[PATCH 1/2] [media] fc0012: Delete an error message for a failed memory allocation in fc0012_attach()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 17:47:52 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/tuners/fc0012.c | 1 - 1 file changed, 1 deletion(-) di

[PATCH 2/2] [media] fc0012: Improve a size determination in fc0012_attach()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 17:55:27 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 0/2] [media] IT913X: Adjustments for two function implementations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 20:12:34 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete two error messages for a failed memory allocation Improve three size determinations drivers/media/tuners/it913x.c | 3 +--

[PATCH 1/2] [media] it913x: Delete two error messages for a failed memory allocation in it913x_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 19:40:47 +0200 * Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. * Delete the label "err" and the variable "ret" which became unnecessary with this refactoring. Signe

[PATCH 2/2] [media] it913x: Improve three size determinations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 20:06:01 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 0/2] [media] M88RS6000T: Adjustments for two function implementations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 21:48:45 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve three size determinations drivers/media/tuners/m88rs6000t.c | 13 ++

[PATCH 1/2] [media] tuners: Delete an error message for a failed memory allocation in m88rs6000t_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 21:24:27 +0200 * Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. * Add a jump target so that the function "kfree" will be always called with a non-null pointer. Sig

[PATCH 2/2] [media] m88rs6000t: Improve three size determinations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sat, 16 Sep 2017 21:38:03 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 0/2] [media] Si2157: Adjustments for two function implementations

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 08:48:24 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination in two functions drivers/media/tuners/si2157.c

[PATCH 1/2] [media] si2157: Delete an error message for a failed memory allocation in si2157_probe()

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 08:20:04 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/tuners/si2157.c | 1 - 1 file changed, 1 deletion(-) di

[PATCH 2/2] [media] si2157: Improve a size determination in two functions

2017-09-16 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 08:32:17 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 0/2] [media] TDA18212HN: Adjustments for two function implementations

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 10:03:45 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve three size determinations drivers/media/tuners/tda18212.c | 13

[PATCH 1/2] [media] tda18212: Delete an error message for a failed memory allocation in tda18212_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 09:33:58 +0200 * Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. * Add a jump target so that the function "kfree" will be always called with a non-null pointer. Sig

[PATCH 2/2] [media] tda18212: Improve three size determinations

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 09:42:17 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 0/2] [media] AirSpy: Adjustments for airspy_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 11:11:02 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Improve a size determination drivers/media/usb/airspy/airspy.c | 6 ++

[PATCH 1/2] [media] airspy: Delete an error message for a failed memory allocation in airspy_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 11:00:09 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/airspy/airspy.c | 4 +--- 1 file changed, 1 insertio

[PATCH 2/2] [media] airspy: Improve a size determination in airspy_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 11:03:21 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH] [media] au0828: Delete an error message for a failed memory allocation in au0828_usb_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 11:40:31 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/au0828/au0828-core.c | 4 +--- 1 file changed, 1 ins

[PATCH 0/4] [media] CPia2: Fine-tuning for four function implementations

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 15:25:35 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Use common error handling code in cpia2_usb_probe() Adjust two function calls together with a variable assignment Delete unneces

[PATCH 1/4] [media] cpia2: Use common error handling code in cpia2_usb_probe()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 12:40:14 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/cpia2/cpia2_usb.c | 1

[PATCH 2/4] [media] cpia2: Adjust two function calls together with a variable assignment

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 12:56:50 +0200 The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/media/usb/cpia2/cpia2_usb.c | 7 +

[PATCH 3/4] [media] cpia2: Delete unnecessary null pointer checks in free_sbufs()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 13:23:47 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: kfree(NULL) is safe and this check is probably not required Thus fix the affected source code place. Signed-off-by: Markus Elfring --- drivers/media/usb/

[PATCH 4/4] [media] cpia2: Delete an unnecessary return statement in process_frame()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 13:32:45 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected function. Signed-off-by: Markus Elfring --- drivers

[PATCH 0/8] [media] Cx231xx: Adjustments for several function implementations

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 21:30:12 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (8): Delete eight error messages for a failed memory allocation Adjust 56 checks for null pointers Improve six size determinations D

[PATCH 1/8] [media] cx231xx: Delete eight error messages for a failed memory allocation

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 17:43:47 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-core.c | 14 ++ drivers/

[PATCH 2/8] [media] cx231xx: Adjust 56 checks for null pointers

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 18:23:06 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 3/8] [media] cx231xx: Improve six size determinations

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 18:38:50 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 4/8] [media] cx231xx: Delete an unnecessary variable initialisation in dvb_init()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 18:53:16 +0200 The variable "result" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 2 +- 1 file changed,

[PATCH 5/8] [media] cx231xx: Use common error handling code in dvb_init()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 20:10:34 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-dvb.c | 135 +--- 1 file changed, 53

[PATCH 7/8] [media] cx231xx: Delete an unnecessary variable initialisation in read_eeprom()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 20:28:00 +0200 The local variable "ret" will be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-cards.c | 2 +- 1 file changed, 1 ins

[PATCH 6/8] [media] cx231xx: Use common error handling code in read_eeprom()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 20:22:15 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-card

[PATCH 8/8] [media] cx231xx: Use common error handling code in cx231xx_load_firmware()

2017-09-17 Thread SF Markus Elfring
From: Markus Elfring Date: Sun, 17 Sep 2017 21:07:39 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/cx231xx/cx231xx-417.c | 61 - 1 file changed, 29

[PATCH 0/2] [media] dvb_usb_core: Adjustments for two function implementations

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 09:51:23 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete two error messages for a failed memory allocation in dvb_usbv2_probe() Improve a size determination in two functions driver

[PATCH 1/2] [media] dvb_usb_core: Delete two error messages for a failed memory allocation in dvb_usbv2_probe()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 09:25:19 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/dvb-usb-v2/dvb_usb_core.c | 3 --- 1 file changed, 3 d

[PATCH 2/2] [media] dvb_usb_core: Improve a size determination in two functions

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 09:36:33 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 0/6] [media] Go7007: Adjustments for some function implementations

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 14:54:32 +0200 Some update suggestions were taken into account from static source code analysis. Markus Elfring (6): Delete an error message for a failed memory allocation in go7007_load_encoder() Adjust 35 checks for null pointers Improve a siz

[PATCH 1/6] [media] go7007: Delete an error message for a failed memory allocation in go7007_load_encoder()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 10:52:42 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/go7007/go7007-driver.c | 1 - 1 file changed, 1 dele

[PATCH 2/6] [media] go7007: Adjust 35 checks for null pointers

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 11:13:27 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 3/6] [media] go7007: Improve a size determination in four functions

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 11:27:30 +0200 Replace the specification of data structures by pointer dereferences as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was detec

[PATCH 4/6] [media] go7007: Use common error handling code in s2250_probe()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 13:50:45 +0200 Adjust jump targets so that a bit of exception handling can be better reused at the end of this function. This refactoring might fix also an error situation where the function "i2c_unregister_device" was not called after a software failu

[PATCH 5/6] [media] go7007: Use common error handling code in go7007_snd_init()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 14:28:59 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/go7007/snd-go7007.c |

[PATCH 6/6] [media] go7007: Delete an unnecessary variable initialisation in go7007_snd_init()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 14:35:43 +0200 The variable "ret" will eventually be set to an appropriate value a bit later. Thus omit the explicit initialisation at the beginning. Signed-off-by: Markus Elfring --- drivers/media/usb/go7007/snd-go7007.c | 2 +- 1 file changed, 1 in

[PATCH] [media] gspca: Delete two error messages for a failed memory allocation in gspca_dev_probe2()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 17:47:58 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/gspca.c | 6 ++ 1 file changed, 2 insertions

[PATCH] [media] gspca: Use common error handling code in gspca_init_transfer()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 18:40:05 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/gspca.c | 17 +

[PATCH] [media] jl2005bcd: Delete an error message for a failed memory allocation in jl2005c_dostream()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 19:24:24 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/jl2005bcd.c | 4 +--- 1 file changed, 1 insert

[PATCH] [media] sq905: Delete an error message for a failed memory allocation in sq905_dostream()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 21:30:58 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/sq905.c | 4 +--- 1 file changed, 1 insertion(

[PATCH 0/2] [media] ViCam: Adjustments for vicam_dostream()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 22:05:22 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation Return directly after a failed kmalloc() drivers/media/usb/gspca/vicam.c |

[PATCH 1/2] [media] vicam: Delete an error message for a failed memory allocation in vicam_dostream()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 21:48:55 +0200 Omit an extra message for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/vicam.c | 4 +--- 1 file changed, 1 insertion(

[PATCH 2/2] [media] vicam: Return directly after a failed kmalloc() in vicam_dostream()

2017-09-18 Thread SF Markus Elfring
From: Markus Elfring Date: Mon, 18 Sep 2017 21:56:55 +0200 * Return directly after a call of the function "kmalloc" failed at the beginning. * Delete the jump target "exit" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/vicam.c |

[PATCH 0/3] [media] HD PVR USB: Adjustments for two function implementations

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 20:21:23 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete three error messages for a failed memory allocation Improve a size determination in hdpvr_alloc_buffers() Return an error

[PATCH 1/3] [media] hdpvr: Delete three error messages for a failed memory allocation

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 09:33:26 +0200 Omit extra messages for a memory allocation failure in these functions. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/hdpvr/hdpvr-core.c | 8 ++-- drivers/media/usb/

[PATCH 2/3] [media] hdpvr: Improve a size determination in hdpvr_alloc_buffers()

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 19:27:53 +0200 Replace the specification of a data structure by a pointer dereference as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. This issue was det

[PATCH 3/3] [media] hdpvr: Return an error code only as a constant in hdpvr_alloc_buffers()

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 19:32:36 +0200 * Return an error code without storing it in an intermediate variable. * Delete the local variable "retval" which became unnecessary with this refactoring. Signed-off-by: Markus Elfring --- drivers/media/usb/hdpvr/hdpvr-video.c | 3

[PATCH 0/3] [media] pvrusb2-ioread: Fine-tuning for eight function implementations

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 08:28:48 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in pvr2_ioread_get_buffer() Delete an unnecessary check before kfree() in two functions Delete un

[PATCH 1/3] [media] pvrusb2-ioread: Use common error handling code in pvr2_ioread_get_buffer()

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 21:50:05 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/pvrusb2/pvrusb2-iore

[PATCH 2/3] [media] pvrusb2-ioread: Delete an unnecessary check before kfree() in two functions

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Tue, 19 Sep 2017 22:12:49 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: kfree(NULL) is safe and this check is probably not required Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/media/usb

[PATCH 3/3] [media] pvrusb2-ioread: Delete unnecessary braces in six functions

2017-09-19 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 08:15:51 +0200 Do not use curly brackets at some source code places where a single statement should be sufficient. Signed-off-by: Markus Elfring --- drivers/media/usb/pvrusb2/pvrusb2-ioread.c | 38 -- 1 file changed, 15 in

Re: [PATCH 4/6] [media] go7007: Use common error handling code in s2250_probe()

2017-09-20 Thread SF Markus Elfring
>> @@ -555,17 +553,13 @@ static int s2250_probe(struct i2c_client *client, >> /* initialize the audio */ >> if (write_regs(audio, aud_regs) < 0) { >> dev_err(&client->dev, "error initializing audio\n"); >> -goto fail; >> +goto e_io; > > Preserve the e

[PATCH] [media] Siano: Use common error handling code in smsusb_init_device()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 14:30:55 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This refactoring might fix also an error situation where the function "kfree" was not called after a software failure was noticed in

[PATCH 0/5] [media] s2255drv: Fine-tuning for some function implementations

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 18:18:28 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete three error messages for a failed memory allocation in s2255_probe() Adjust 13 checks for null pointers Improve two size

[PATCH 1/5] [media] s2255drv: Delete three error messages for a failed memory allocation in s2255_probe()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 16:30:13 +0200 Omit extra messages for a memory allocation failure in this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/s2255/s2255drv.c | 13 - 1 file changed, 4

[PATCH 2/5] [media] s2255drv: Adjust 13 checks for null pointers

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 16:46:19 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written !… Thus fix the affected source code pl

[PATCH 3/5] [media] s2255drv: Improve two size determinations in s2255_probe()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 16:56:20 +0200 Replace the specification of data structures by variable references as the parameter for the operator "sizeof" to make the corresponding size determination a bit safer according to the Linux coding style convention. Signed-off-by: Markus

[PATCH 4/5] [media] s2255drv: Use common error handling code in read_pipe_completion()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 17:45:13 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. Signed-off-by: Markus Elfring --- drivers/media/usb/s2255/s2255drv.c | 17 + 1 file changed, 9 insertions(+), 8 del

[PATCH 5/5] [media] s2255drv: Delete an unnecessary return statement in five functions

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 17:50:36 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: void function return statements are not generally useful Thus remove such a statement in the affected functions. Signed-off-by: Markus Elfring --- driver

Re: [media] Siano: Use common error handling code in smsusb_init_device()

2017-09-20 Thread SF Markus Elfring
> If smscore_register_device() succeeds then mdev is freed when we call > smsusb_term_device(intf); The call tree is: Thanks for your constructive information. How do you think about another implementation detail in this function then? May the statement “kfree(mdev);” be executed before “smsus

[PATCH 0/3] [media] TTUSB DVB Budget: Fine-tuning for three function implementations

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 21:03:45 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in ttusb_probe() Improve two size determinations in ttusb_probe() Adjust eight checks for null po

[PATCH 1/3] [media] dvb-ttusb-budget: Use common error handling code in ttusb_probe()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 20:25:24 +0200 Add two jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/ttusb-budget/dvb-

[PATCH 2/3] [media] dvb-ttusb-budget: Improve two size determinations in ttusb_probe()

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 20:46:11 +0200 * The script "checkpatch.pl" pointed information out like the following. ERROR: do not use assignment in if condition Thus fix an affected source code place. * Replace the specification of data structures by variable references a

[PATCH 3/3] [media] dvb-ttusb-budget: Adjust eight checks for null pointers

2017-09-20 Thread SF Markus Elfring
From: Markus Elfring Date: Wed, 20 Sep 2017 20:53:13 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

Re: [media] s2255drv: Adjust 13 checks for null pointers

2017-09-21 Thread SF Markus Elfring
>> MIME-Version: 1.0 >> Content-Type: text/plain; charset=UTF-8 >> Content-Transfer-Encoding: 8bit >> > > You've been told several times that this stuff doesn't work. This functionality might not exactly work in the way that you expect so far. > Try applying this patch with `git am` and you'll

Re: [media] s2255drv: Adjust 13 checks for null pointers

2017-09-21 Thread SF Markus Elfring
>> Would you like to clarify corresponding concerns any more? >> > > Look at the `git log` I did this also for a moment. > and it just copies those lines: The Git software preserves these three message fields (when special characters were used in the commit message). Can you accept such softw

[PATCH 0/4] [media] usbvision-core: Fine-tuning for some function implementations

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 17:00:17 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Use common error handling code in usbvision_set_input() Use common error handling code in usbvision_set_compress_params() Delete

[PATCH 1/4] [media] usbvision-core: Use common error handling code in usbvision_set_input()

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 11:50:54 +0200 * Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. * Replace the local variable "proc" by the identifier "__func__". *

[PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_params()

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 12:45:49 +0200 * Add a jump target so that a bit of exception handling can be better reused at the end of this function. * Replace the local variable "proc" by the identifier "__func__". * Use the interface "dev_err" instead of "printk". Signed-off

[PATCH 3/4] [media] usbvision-core: Delete unnecessary braces in 11 functions

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 16:24:20 +0200 Do not use curly brackets at some source code places where a single statement should be sufficient. Signed-off-by: Markus Elfring --- drivers/media/usb/usbvision/usbvision-core.c | 71 1 file changed, 31 in

[PATCH 4/4] [media] usbvision-core: Replace four printk() calls by dev_err()

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 16:47:28 +0200 * Replace the local variable "proc" by the identifier "__func__". * Use the interface "dev_err" instead of "printk" in these functions. Signed-off-by: Markus Elfring --- drivers/media/usb/usbvision/usbvision-core.c | 18 +++---

[PATCH 0/3] [media] uvcvideo: Fine-tuning for some function implementations

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 21:20:12 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in uvc_ioctl_g_ext_ctrls() Adjust 14 checks for null pointers Add some spaces for better code rea

[PATCH 1/3] [media] uvcvideo: Use common error handling code in uvc_ioctl_g_ext_ctrls()

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 20:47:02 +0200 Add a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_v4l2.c | 13

[PATCH 2/3] [media] uvcvideo: Adjust 14 checks for null pointers

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 21:00:21 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The script “checkpatch.pl” pointed information out like the following. Comparison to NULL could be written … Thus fix the affected source code pla

[PATCH 3/3] [media] uvcvideo: Add some spaces for better code readability

2017-09-21 Thread SF Markus Elfring
From: Markus Elfring Date: Thu, 21 Sep 2017 21:12:29 +0200 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/media/usb/uvc/uvc_v4l2.c | 13 +++-- 1 file changed, 7 insertions(+), 6 deletions(-) dif

Re: [PATCH 2/4] [media] usbvision-core: Use common error handling code in usbvision_set_compress_params()

2017-09-22 Thread SF Markus Elfring
>> @@ -1913,11 +1908,12 @@ static int usbvision_set_compress_params(struct >> usb_usbvision *usbvision) >> USB_DIR_OUT | USB_TYPE_VENDOR | >> USB_RECIP_ENDPOINT, 0, >> (__u16) USBVISION_PCM_THR1, value, 6, HZ); >> +i

Re: [media] usbvision-core: Delete unnecessary braces in 11 functions

2017-09-22 Thread SF Markus Elfring
> No. Multi-line indents get curly braces for readability. Which of the proposed change possibilities do you not like especially at the moment? Regards, Markus

[PATCH] [media] sn9c20x: Use common error handling code in sd_init()

2017-09-22 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Sep 2017 17:45:33 +0200 Add jump targets so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/sn9c20x.c | 17

[PATCH] [media] spca500: Use common error handling code in spca500_synch310()

2017-09-22 Thread SF Markus Elfring
From: Markus Elfring Date: Fri, 22 Sep 2017 18:45:07 +0200 Adjust a jump target so that a bit of exception handling can be better reused at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring --- drivers/media/usb/gspca/spca500.c |

<    1   2   3   4   5   6   >