diff options
author | Markus Elfring <elfring@users.sourceforge.net> | 2017-12-15 12:29:49 -0500 |
---|---|---|
committer | Thierry Reding <thierry.reding@gmail.com> | 2018-03-27 17:27:05 -0400 |
commit | 6106d888a050567b00cd36933ae80e9a3087e3bb (patch) | |
tree | 084dd542702ae9834115341c32758514b782e3b4 /drivers/pwm/pwm-puv3.c | |
parent | d7a131d3a4a20e7f03de30e85ae082dd68b4e11c (diff) |
pwm: puv3: Delete an error message for a failed memory allocation
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 <elfring@users.sourceforge.net>
Signed-off-by: Thierry Reding <thierry.reding@gmail.com>
Diffstat (limited to 'drivers/pwm/pwm-puv3.c')
-rw-r--r-- | drivers/pwm/pwm-puv3.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/pwm/pwm-puv3.c b/drivers/pwm/pwm-puv3.c index ed6007b27585..754fd9a98f6b 100644 --- a/drivers/pwm/pwm-puv3.c +++ b/drivers/pwm/pwm-puv3.c | |||
@@ -107,10 +107,8 @@ static int pwm_probe(struct platform_device *pdev) | |||
107 | int ret; | 107 | int ret; |
108 | 108 | ||
109 | puv3 = devm_kzalloc(&pdev->dev, sizeof(*puv3), GFP_KERNEL); | 109 | puv3 = devm_kzalloc(&pdev->dev, sizeof(*puv3), GFP_KERNEL); |
110 | if (puv3 == NULL) { | 110 | if (!puv3) |
111 | dev_err(&pdev->dev, "failed to allocate memory\n"); | ||
112 | return -ENOMEM; | 111 | return -ENOMEM; |
113 | } | ||
114 | 112 | ||
115 | puv3->clk = devm_clk_get(&pdev->dev, "OST_CLK"); | 113 | puv3->clk = devm_clk_get(&pdev->dev, "OST_CLK"); |
116 | if (IS_ERR(puv3->clk)) | 114 | if (IS_ERR(puv3->clk)) |