[PATCH 1/3] video: au1100fb: Delete an error message for a failed memory allocation in au1100fb_drv_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 18:14:41 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 0/3] video/fbdev/au1100fb: Adjustments for au1100fb_drv_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 18:53:21 +0100 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

Re: omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-27 Thread SF Markus Elfring
>> Omit an extra message for a memory allocation failure in these functions. … > nak, unlike many others, these message give extra info on which > allocation failed, that can be useful. Can a default allocation failure report provide the information which you might expect so far? Regards, Markus

[PATCH] video: auo_k190x: Delete an error message for a failed memory allocation in auok190x_common_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 17:53:05 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: bf537-lq035: Delete an error message for a failed memory allocation in bfin_lq035_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 17:27:51 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: bf54x-lq043fb: Delete an error message for a failed memory allocation in bfin_bf54x_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 11:04:22 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: adv7393fb: Delete two error messages for a failed memory allocation in bfin_adv7393_fb_probe()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 10:33:19 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: fb_ddc: Delete an error message for a failed memory allocation in fb_do_probe_ddc_edid()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 10:12:26 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: fsl-diu-fb: Delete an error message for a failed memory allocation in fsl_diu_init()

2017-11-27 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 27 Nov 2017 09:56:09 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video: matroxfb: Delete an error message for a failed memory allocation in matroxfb_crtc2_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 22:13:55 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 2/2] video: fbdev-MMP: Improve a size determination in path_init()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 21:21:33 +0100 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 Li

[PATCH 1/2] video: fbdev-MMP: Delete an error message for a failed memory allocation in two functions

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 21:16:30 +0100 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 <elfr...@users.source

[PATCH 0/2] video/fbdev/mmp: Adjustments for two function implementations

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 21:38:42 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an error message for a failed memory allocation in two functions Improve a size determi

[PATCH] omapfb/dss: Delete an error message for a failed memory allocation in three functions

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 19:46:09 +0100 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 <elfr...@users.source

[PATCH 3/3] video: omap: Delete an error message for a failed memory allocation in mipid_spi_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 18:21:25 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 2/3] video: omap: Improve a size determination in omapfb_do_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 18:16:20 +0100 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 Li

[PATCH 1/3] video: omap: Delete an error message for a failed memory allocation in omapfb_do_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 18:09:15 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 0/3] video/fbdev/omap: Adjustments for two function implementations

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 18:38:48 +0100 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Delete an error message for a failed memory allocation in omapfb_do_probe() Improve

[PATCH 2/2] video: s3c-fb: Improve a size determination in s3c_fb_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 15:03:03 +0100 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 Li

[PATCH 1/2] video: s3c-fb: Delete an error message for a failed memory allocation in s3c_fb_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 15:00:16 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 0/2] video: s3c-fb: Adjustments for s3c_fb_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 15:12:34 +0100 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

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

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 13:48:55 +0100 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 <elfr...@users.source

[PATCH] video: sh_mobile_meram: Delete an error message for a failed memory allocation in sh_mobile_meram_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 13:08:43 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 4/4] video: sm501fb: Adjust 15 checks for null pointers

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 10:56:46 +0100 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 !…

[PATCH 3/4] video: sm501fb: Combine substrings for four messages

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 10:43:36 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: quoted string split across lines Thus fix four source code places. Signed-off-by: Mark

[PATCH 2/4] video: sm501fb: Improve a size determination in sm501fb_probe()

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 10:22:37 +0100 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 Li

[PATCH 1/4] video: sm501fb: Delete error messages for a failed memory allocation in two functions

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 10:10:31 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 0/4] video: sm501fb: Adjustments for seven function implementations

2017-11-26 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 11:10:01 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete error messages for a failed memory allocation in two functions Improve a size determi

[PATCH v2 2/5] video: smscufx: Less checks in ufx_usb_probe() after error detection

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 26 Nov 2017 08:18:20 +0100 Up to four checks could be repeated by the ufx_usb_probe() function during error handling even if the relevant properties can be determined for the involved variables before by source code an

[PATCH 5/5] video: smscufx: Adjust three checks for null pointers

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 21:21:20 +0100 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 …

[PATCH 4/5] video: smscufx: Improve a size determination in two functions

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 21:10:22 +0100 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 Li

[PATCH 3/5] video: smscufx: Return an error code only as a constant in ufx_realloc_framebuffer()

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 19:56:44 +0100 * Return an error code without storing it in an intermediate variable. * Delete the label "error" and local variable "retval" which became unnecessary with this refactori

[PATCH 2/5] video: smscufx: Less checks in ufx_usb_probe() after error detection

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 19:47:51 +0100 Up to four checks could be repeated by the ufx_usb_probe() function during error handling even if the relevant properties can be determined for the involved variables before by source code an

[PATCH 1/5] video: smscufx: Delete an error message for a failed memory allocation in two functions

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 18:32:29 +0100 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 <elfr...@users.source

[PATCH 0/5] video-SMSC UFX: Adjustments for five function implementations

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 21:38:42 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete an error message for a failed memory allocation in two functions Less

[PATCH 2/2] video: ssd1307fb: Improve a size determination in ssd1307fb_probe()

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 16:50:26 +0100 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 Li

[PATCH 1/2] video: ssd1307fb: Delete an error message for a failed memory allocation in ssd1307fb_probe()

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 16:45:56 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 0/2] video: ssd1307fb: Adjustments for ssd1307fb_probe()

2017-11-25 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sat, 25 Nov 2017 16:56:46 +0100 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

[PATCH] video/fbdev/stifb: Delete an error message for a failed memory allocation in stifb_init_fb()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 22:22:06 +0100 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 <elfr...@users.sourceforge.net>

[PATCH 4/4] video: udlfb: Delete an unnecessary return statement in two functions

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:36:39 +0100 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 functi

[PATCH 3/4] video: udlfb: Improve a size determination in dlfb_alloc_urb_list()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:30:37 +0100 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 Li

[PATCH 2/4] video: udlfb: Return an error code only as a constant in dlfb_realloc_framebuffer()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:22:25 +0100 * Return an error code without storing it in an intermediate variable. * Delete the label "error" and local variable "retval" which became unnecessary with this refactori

[PATCH 1/4] video: udlfb: Delete an error message for a failed memory allocation in two functions

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:12:54 +0100 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 <elfr...@users.source

[PATCH 0/4] video-UDLFB: Adjustments for five function implementations

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 21:45:54 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Delete an error message for a failed memory allocation in two functions Return an error cod

[PATCH] video/fbdev/vt8500lcdfb: Delete an error message for a failed memory allocation in vt8500lcd_probe()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 20:42:08 +0100 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 <elfr...@users.sourceforge.net>

[PATCH] video/fbdev/wm8505fb: Delete an error message for a failed memory allocation in wm8505fb_probe()

2017-11-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 24 Nov 2017 20:22:10 +0100 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 <elfr...@users.sourceforge.net>

[PATCH v2] video: atmel_lcdfb: Use unique error messages in atmel_lcdfb_of_init()

2017-11-06 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 6 Nov 2017 19:00:58 +0100 A duplicate error message was used so far in this function implementation. Thus use a consistent message format instead together with property names where constant merging can be applied by the co

Re: video: atmel_lcdfb: Use common error handling code in atmel_lcdfb_of_init()

2017-11-06 Thread SF Markus Elfring
> Sorry but NACK: the message was malformed and resulted in the > duplication of the error log that you spotted. > > The proper way to fix this is to modify the second occurrence of this message. * Would you like to achieve that a corresponding message will mention anything around a property

Re: video: atmel_lcdfb: Use common error handling code in atmel_lcdfb_of_init()

2017-11-06 Thread SF Markus Elfring
>> If you want to lower the size of strings in this driver, you can do it, >> but not like this. > > Just so we're clear, GCC already detects and combines it when you use > the same string constant twice. Do you distinguish between merging of constants and the combination of statements for such

[PATCH] video/fbdev/dnfb: Use common error handling code in dnfb_probe()

2017-11-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 5 Nov 2017 14:54:52 +0100 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

[PATCH] video: atmel_lcdfb: Use common error handling code in atmel_lcdfb_of_init()

2017-11-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 5 Nov 2017 14:00:52 +0100 Add a jump target so that a specific error message is stored only once at the end of this function implementation. Replace two calls of the function "dev_err" by goto statements. This is

[PATCH v2 2/2] drm/rcar-du: Adjust 14 checks for null pointers

2017-11-01 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Wed, 1 Nov 2017 16:00:46 +0100 The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written !... Thus fix the affected source code places. Signed-off-by: Mark

[PATCH v2 1/2] drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-11-01 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Wed, 1 Nov 2017 15:57:31 +0100 * Add a jump target so that a bit of exception handling can be better reused at the end of this function. * Increase the scope for the variable "ret". This issue was detected by usin

[PATCH v2 0/2] R-Car Display Unit: Fine-tuning for some function implementations

2017-11-01 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Wed, 1 Nov 2017 16:23:45 +0100 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): drm/rcar-du: Use common error handling code in rcar_du_encoders_init() drm/rcar-du: Adjust 14

Re: drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-30 Thread SF Markus Elfring
> In general, I'll pick up any patches that are good, This is usual. > but the current track record is that Markus' patches need extra scrutiny, I find that this can be fine according to a safe review for presented update suggestions. > and many of the patches contain subjective changes that

Re: drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-29 Thread SF Markus Elfring
> Just for the record, I've been bitten in the past by applying one of Markus' > patches that seemed to make sense, only to discover later that it introduced > a > security hole. How do you think about to take another look at the circumstances under which a questionable commit happened in the

Re: Unicode characters in commit messages?

2017-10-25 Thread SF Markus Elfring
> These long email threads are a waste of time They occur for different topics. > when we already answered your questions completely There were some attempts for specific details. > and over and over. I hope that further useful adjustments can be achieved for involved information sources.

Re: Unicode characters in commit messages?

2017-10-25 Thread SF Markus Elfring
>> Would you like to support Unicode characters there? > > Multiple people have answered this question already and I have answered > it multiple times. I found the corresponding feedback not sufficient so far to reach a final consensus. Will this topic evolve any further? Regards, Markus

Re: drm/rcar-du: Adjust 14 checks for null pointers

2017-10-25 Thread SF Markus Elfring
>> The script “checkpatch.pl” pointed information out like the following. >> >> Comparison to NULL could be written !… >> >> Thus fix the affected source code places. >> > > This one is fine This kind of feedback is nice. > except for the commit message. Would you like to support Unicode

Re: Clarification for approaches around exception handling

2017-10-25 Thread SF Markus Elfring
> But anyways I guess other people sometimes disagree with me. Am I one of them? ;-) > Unwinding is for when you allocate five things in a row. This is a general issue. I find that it is also needed in this function as usual. > You have to undo four if the last allocation fails. Concrete

[PATCH 2/2] drm/tegra: Use an error code directly in tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 19:21:24 +0200 Return the code "-EPROBE_DEFER" directly in one if branch without assigning it to the local variable "err" before. Signed-off-by: Markus Elfring <elfr...@users.sourceforge.ne

[PATCH 1/2] drm/tegra: Use common error handling code in tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 19:12:09 +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

[PATCH 0/2] GPU-DRM-Tegra: Fine-tuning for tegra_output_probe()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 19:29:39 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use common error handling code Use an error code directly drivers/gpu/drm/tegra/output.

[PATCH 2/2] drm/rcar-du: Adjust 14 checks for null pointers

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 17:47:37 +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 !…

[PATCH 1/2] drm/rcar-du: Use common error handling code in rcar_du_encoders_init()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 17:16:09 +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

[PATCH 0/2] R-Car Display Unit: Fine-tuning for some function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 17:55:43 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use common error handling code in rcar_du_encoders_init() Adjust 14 checks for null po

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> Do you prefer to delegate the proposed software refactoring >> only to a corresponding optimiser? > > yes. Will any applications around the semantic patch language (Coccinelle software) fit also in the preferred tool category? Regards, Markus ___

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> … It's just that two out of three error >> messages happened to be the same and Markus wants to save a bit of >> memory by using the same string. The memory savings is not so big that >> it's worth making the code less readable. > > I agree with Dan. > > It doesn't save any real memory

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
> This isn't the case here. I find your view interesting for further clarification somehow. > Instead of making the code more readable, we're making it more convoluted. Can the shown software refactoring usually help here? > It's just that two out of three error messages happened to be the

[PATCH 2/2] drm/i915/dp: Use common error handling code in intel_dp_sink_crc_stop()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 15:40:47 +0200 Adjust jump targets so that a specific error code assignment will be in the implementation only at the end of this function. This issue was detected by using the Coccinelle software. Signed-off-by:

[PATCH 1/2] drm/i915/dp: Delete an unnecessary goto statement in intel_dp_sink_crc()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 15:15:20 +0200 A jump was specified for a location which was directly behind. Thus remove such an unnecessary goto statement. This issue was detected by using the Coccinelle software. Signed-off-by: Markus Elfring

[PATCH 0/2] GPU-DRM-i915-DP: Fine-tuning for two function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 15:54:32 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Delete an unnecessary goto statement in intel_dp_sink_crc() Use common error handlin

Re: drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
>> Add a jump target so that a call of the function "gvt_vgpu_err" is stored >> only once at the end of this function implementation. >> Replace two calls by goto statements. >> >> This issue was detected by using the Coccinelle software. > > I don't think this is an issue or an improvement. Do

[PATCH] drm/i915/gvt: Use common error handling code in shadow_workload_ring_buffer()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 14:20:06 +0200 Add a jump target so that a call of the function "gvt_vgpu_err" is stored only once at the end of this function implementation. Replace two calls by goto statements. This issue was d

Re: [PATCH 1/3] drm/exynos/dsi: Use common error handling code in exynos_dsi_enable()

2017-10-24 Thread SF Markus Elfring
>> @@ -1401,11 +1400,14 @@ static void exynos_dsi_enable(struct drm_encoder >> *encoder) >> dsi->state &= ~DSIM_STATE_ENABLED; >> exynos_dsi_set_display_enable(dsi, false); >> drm_panel_unprepare(dsi->panel); >> -

[PATCH 3/3] drm/exynos: Fix typos in five comment lines

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 10:20:20 +0200 The script "checkpatch.pl" pointed misspelled words out. Thus fix the affected places. Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> --- drivers/gpu/drm/exynos

[PATCH 2/3] drm/exynos/gem: Use common error handling code in exynos_drm_gem_init()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 09:50:54 +0200 Adjust 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

[PATCH 1/3] drm/exynos/dsi: Use common error handling code in exynos_dsi_enable()

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 09:32:18 +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

[PATCH 0/3] GPU-DRM-Exynos: Fine-tuning for six function implementations

2017-10-24 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Tue, 24 Oct 2017 10:34:56 +0200 Three update suggestions were taken into account from static source code analysis. Markus Elfring (3): Use common error handling code in exynos_dsi_enable() Use common error handlin

[PATCH] drm/etnaviv: Improve unlocking of a mutex in etnaviv_iommu_map_gem()

2017-10-23 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 23 Oct 2017 21:27:30 +0200 Add a jump target so that a call of the function "mutex_unlock" is stored only once at the end of this function implementation. Replace three calls by goto statements. This issue was d

Re: [PATCH] gpu/drm/bridge/sii9234: Use common error handling code in sii9234_writebm()

2017-10-23 Thread SF Markus Elfring
>> ret = i2c_smbus_write_byte_data(client, offset, value); >> -if (ret < 0) { >> -dev_err(ctx->dev, "writebm: %4s[0x%02x] <- 0x%02x\n", >> -sii9234_client_name[id], offset, value); >> -ctx->i2c_error = ret; >> -} >> +if (!ret) >> +

[PATCH v2] gpu/drm/bridge/sii9234: Use common error handling code in sii9234_writebm()

2017-10-22 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 22 Oct 2017 21:50:51 +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. * Adjust condition checks.

[PATCH] gpu/drm/bridge/sii9234: Use common error handling code in sii9234_writebm()

2017-10-22 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Sun, 22 Oct 2017 21:21:44 +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. * Adjust condition checks.

[PATCH] tinydrm: mipi-dbi: Adjust buffer output in mipi_dbi_debugfs_command_show()

2017-05-10 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Wed, 10 May 2017 17:03:20 +0200 * Use a special format string specification for the desired output of the array "val" into a sequence. * Adjust two local variables accordingly. This refactoring supersedes the u

[PATCH] tinydrm: mipi-dbi: Use seq_putc() in mipi_dbi_debugfs_command_show()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 13:42:03 +0200 A single character (line break) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by: Mark

[PATCH 2/2] drm/etnaviv: Delete an error message for a failed memory allocation in etnaviv_bind()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 13:08:11 +0200 The script "checkpatch.pl" pointed information out like the following. WARNING: Possible unnecessary 'out of memory' message Thus remove such a statement here. Link: http://events.lin

[PATCH 1/2] drm/etnaviv: Use seq_putc() in etnaviv_buffer_dump()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 13:00:28 +0200 Two single characters (line breaks) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by

[PATCH 0/2] GPU-DRM-Etnaviv: Fine-tuning for two function implementations

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 13:16:15 +0200 Two update suggestions were taken into account from static source code analysis. Markus Elfring (2): Use seq_putc() in etnaviv_buffer_dump() Delete an error message for a failed memory allo

[PATCH 4/4] dma-buf: Use seq_putc() in two functions

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 10:55:42 +0200 Three single characters (line breaks) should be put into a sequence. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by

[PATCH 3/4] dma-buf: Adjust a null pointer check in dma_buf_attach()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 10:54:17 +0200 The script "checkpatch.pl" pointed information out like the following. Comparison to NULL could be written "!attach" Thus adjust this expression. Signed-of

[PATCH 2/4] dma-buf: Improve a size determination in dma_buf_attach()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 10:50:09 +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 Li

[PATCH 1/4] dma-buf: Combine two function calls into one in dma_buf_debug_show()

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 10:32:44 +0200 A bit of data was put into a sequence by two separate function calls. Print the same data by a single function call instead. This issue was detected by using the Coccinelle software. Signed-off-by:

[PATCH 0/4] DMA-buf: Fine-tuning for four function implementations

2017-05-08 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Mon, 8 May 2017 11:05:05 +0200 A few update suggestions were taken into account from static source code analysis. Markus Elfring (4): Combine two function calls into one in dma_buf_debug_show() Improve a size determi

Re: GPU-DRM-STI: Fine-tuning for some function implementations

2017-05-06 Thread SF Markus Elfring
>> 1. I suggest to combine a few functions into fewer ones. >>* Do you spot any programming mistakes in these concrete cases? > > Not in the patches I skimmed. Thanks for such feedback. > However, your history of breaking code tells me that there have been mistakes > missed in the past. I

Re: GPU-DRM-STI: Fine-tuning for some function implementations

2017-05-06 Thread SF Markus Elfring
> Generally speaking, I don't care about checkpatch/cocci changes that aren't > tested. I find this view interesting only to some degree. 1. I suggest to combine a few functions into fewer ones. * Do you spot any programming mistakes in these concrete cases? * Can such code reduction

Re: GPU-DRM-STI: Fine-tuning for some function implementations

2017-05-05 Thread SF Markus Elfring
> It seems like you're back to submitting cocci patches again :) My contribution activities are varying also for Linux software over time. ;-) The corresponding source code search patterns get different popularity. > I don't want to waste your time by ignoring your patches, so please ensure

[PATCH 5/5] drm/sti: Adjust two checks for null pointers in sti_hqvdp_probe()

2017-05-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 5 May 2017 15:33: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 !…

[PATCH 4/5] drm/sti: Fix typos in a comment line

2017-05-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 5 May 2017 15:32:08 +0200 Adjust this description for a function call. Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> --- drivers/gpu/drm/sti/sti_tvout.c | 2 +- 1 file changed, 1 insertion(+), 1 delet

[PATCH 3/5] drm/sti: Fix a typo in a comment line

2017-05-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 5 May 2017 15:30:44 +0200 Add a missing character in this description for a data structure. Signed-off-by: Markus Elfring <elfr...@users.sourceforge.net> --- drivers/gpu/drm/sti/sti_cursor.c | 2 +- 1 file changed,

[PATCH 2/5] drm/sti: Replace 17 seq_puts() calls by seq_putc()

2017-05-05 Thread SF Markus Elfring
From: Markus Elfring <elfr...@users.sourceforge.net> Date: Fri, 5 May 2017 15:00:46 +0200 Single characters should be put into a sequence at several places. Thus use the corresponding function "seq_putc". This issue was detected by using the Coccinelle software. Signed-off-by

<    1   2   3   4   5   6   7   >