Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933977AbeAIQKO (ORCPT + 1 other); Tue, 9 Jan 2018 11:10:14 -0500 Received: from mout.web.de ([212.227.15.4]:64496 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932862AbeAIQKM (ORCPT ); Tue, 9 Jan 2018 11:10:12 -0500 To: kernel-janitors@vger.kernel.org, Arnd Bergmann , Ashutosh Dixit , Greg Kroah-Hartman , Sudeep Dutt Cc: LKML From: SF Markus Elfring Subject: [PATCH] misc/mic/host: Delete an error message for a failed memory allocation in mic_probe() Message-ID: <317c580a-028f-2119-efd1-3a65732a433c@users.sourceforge.net> Date: Tue, 9 Jan 2018 17:10:05 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:QtvCofrwjWZKtfPZxHsedH92cMcSrawdMGV19NjddtvXi2hfyYI oetdq2L2+S6LBNGL1nG1eqg7VPffzGCjix1P6Z+NwHEL3Le1F/DaU9tVjlgERZPfUqfofsV 6UkUWGJ3TQdg/AYTw3E7jSiN3B/xH35Of+tESF1SMsqYB2txLQ8U88uME3cWm3eTzL3GQUa 6CJkDpuolgtBYNBnKXZjw== X-UI-Out-Filterresults: notjunk:1;V01:K0:Cfi3D+hCv7U=:0LMYdJpuZ2lRAfy/rnsOjF lVxm60yz0PCUYJAVnxi1a72+/tHh6aCI/hrM4+SyfcAbEJZMRno0MhoMJSzm8KsRQKKLp1jkz VdLP9a51x8a9B6s6o+gn4OLy4CBgULNNxioCEMtWQX3OOsbT7gjJIawxbDD5L7537N15Tsb1Z AKbm87tFH+3S3yo//0SWCwgmp3rs0Sru1jtWWfA5jyEPSdtc5UyvFYXrLa/UReSamI7r/dqLJ yiaQ2LaRdgcCjehm1IkN0GE8slLNBJr8sruSJrwZAmKf4KVrEcC7vADHGt2+eV2FZcUzFejXj jKv3/B6mZcMtkhVeGKJyzk3ymH6BfuxJ2woSUubp4vuSENQAJXCxoqpoFQZ5BQ9wwpZ2jW+lT DaX9HgXQwknbXXtBmSU2L7JT9u/dH1cVT0yp94Aayk+vnDunwUAANyBeFVVbWIk7wGLyzoFGp KdcIOtkEH1ZOlGfgNPZytJkI1my5CQNkzNmq/hWhC21mClqTZYREf6LCsClj+EP8JBub9hH20 4qGrEf+fCyMUuW9zX25d9MaJl78kozp50yGtz469Q7CK/dz9SAcNLMl3Ca6qmpWev9HM2togO /IbcF2WPZqrDR4el5rdQ1aEcLwlresvQmxLB7j1mTU48KpyUpcR8HVxSVh5ZVB+WptusvKl+l CZPH3e/Hi8PBYzvXJmOL/yfc9ukrvYgx4gTSjszjm9dQTHTCAZVkXz+mLUYKdDEx19JEkRt/9 SzToonGhowntMVTZGzmOTjXvbjeI3BHea4AdnsI84H5EHFfFR8TbqkMH6S1SHWNj/nETfykKI s5YU97mGinISjuN6jOlqd+BWRvULtPZYjddY+LZ6nAS2aADO+Q= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Tue, 9 Jan 2018 17:03: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 --- drivers/misc/mic/host/mic_main.c | 1 - 1 file changed, 1 deletion(-) diff --git a/drivers/misc/mic/host/mic_main.c b/drivers/misc/mic/host/mic_main.c index 035be3e9ceba..e3d38f6018c4 100644 --- a/drivers/misc/mic/host/mic_main.c +++ b/drivers/misc/mic/host/mic_main.c @@ -175,7 +175,6 @@ static int mic_probe(struct pci_dev *pdev, mdev = kzalloc(sizeof(*mdev), GFP_KERNEL); if (!mdev) { rc = -ENOMEM; - dev_err(&pdev->dev, "mdev kmalloc failed rc %d\n", rc); goto mdev_alloc_fail; } mdev->id = ida_simple_get(&g_mic_ida, 0, MIC_MAX_NUM_DEVS, GFP_KERNEL); -- 2.15.1