pwm: pwm-tipwmss: remove unnecessary OOM messages
PATCH 1/1 pwm: pwm-tipwmss: remove unnecessary OOM messages
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. The following checkpatch warning is also removed.
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by Jingoo Han <[email protected]>
--- drivers/pwm/pwm-tipwmss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
drivers/pwm/pwm-tipwmss.c +1 -3
@@ -62,10 +62,8 @@ static int pwmss_probe(struct platform_device *pdev)struct device_node *node = pdev->dev.of_node; info =devm_kzalloc (&pdev->dev,sizeof (*info),GFP_KERNEL ); -if (!info) { -dev_err (&pdev->dev,"failed to allocate memory\n" ); +if (!info)return -ENOMEM ; - }mutex_init (&info->pwmss_lock);
Signature · 1 line
1.7.10.4
Thierry Reding
AppliedQuoted 10 lines · Jingoo Han
The site-specific OOM messages are unnecessary, because they duplicate the MM subsystem generic OOM message. The following checkpatch warning is also removed.
WARNING: Possible unnecessary 'out of memory' message
Signed-off-by Jingoo Han <[email protected]>--- drivers/pwm/pwm-tipwmss.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-)
Applied, thanks.
Thierry