Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751819AbdL2SFZ (ORCPT ); Fri, 29 Dec 2017 13:05:25 -0500 Received: from mailout4.samsung.com ([203.254.224.34]:39106 "EHLO mailout4.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751304AbdL2SFW (ORCPT ); Fri, 29 Dec 2017 13:05:22 -0500 DKIM-Filter: OpenDKIM Filter v2.11.0 mailout4.samsung.com 20171229180520epoutp04276f2cfd076aac6e03e59384cd880c2d~E1gvLD4Kh1402414024epoutp04P X-AuditID: b6c32a39-e27ff700000010dd-50-5a4683e0a3f8 From: Bartlomiej Zolnierkiewicz To: SF Markus Elfring Cc: Rolf Eike Beer , dri-devel@lists.freedesktop.org, linux-fbdev@vger.kernel.org, linux-parisc@vger.kernel.org, Helge Deller , "James E. J. Bottomley" , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH] video/fbdev/stifb: Delete an error message for a failed memory allocation in stifb_init_fb() Date: Fri, 29 Dec 2017 19:05:17 +0100 Message-id: <1680261.Msdj7gi9fB@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <25624997.nONnEdNj0s@daneel.sf-tec.de> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFmpnleLIzCtJLcpLzFFi42LZdlhTX/dBs1uUwYrlkhb3P91mtLjy9T2b xZoXq9gtzncuZ7a4v24Vq8XWW9IWJ/o+sFpc3jWHzeLRqQtMDpweHz7GedzvPs7kcWHRb1aP I3+tPZpOtbN6fN4kF8AWxWWTkpqTWZZapG+XwJUx/+cvloLPnBXbFqxnbWD8zN7FyMkhIWAi 8WzDPaYuRi4OIYEdjBKTb09nh3C+M0q8WrUYrurWi+8sEIndjBLL302CqvrKKLF+yn5GkCo2 ASuJie2rgGwODhEBU4k/J0JAapgFFjJJv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BcW56brFRgWFearlecWJucWleul5yfu4mRmC4bzus1beD8f6S+EOMAhyMSjy8HOmu UUKsiWXFlbmHGCU4mJVEeN82uEUJ8aYkVlalFuXHF5XmpBYfYpTmYFES572ddyxSSCA9sSQ1 OzW1ILUIJsvEwSnVwLiQ9fI0td5SFpY/G7W+Rt3ZEcb9w/bjrdjFW5ItjQ0Zm+W/uQv+rpt2 Kj5EpX/1A5dDk/sM7u1eZdum4mUU3316Shp/y4WD39cpyGq0/jrkrt958elsgaOzX819cGtm 3d3cpkc3Zu+YwNEf+pX5SOiE57yqymFzVlSlcx57U122PImra5fb3h4lluKMREMt5qLiRAAU ucUjcwIAAA== X-CMS-MailID: 20171229180520epcas1p4e6de0ccc24ab20cd4262903f64d56e7f X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20171124213055epcas4p45c641222185056871b97f4e7bc235d2e X-RootMTR: 20171124213055epcas4p45c641222185056871b97f4e7bc235d2e References: <7dcd32b6-9691-14a1-29cf-3a746ef5adfc@users.sourceforge.net> <25624997.nONnEdNj0s@daneel.sf-tec.de> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1226 Lines: 39 On Friday, November 24, 2017 10:30:34 PM Rolf Eike Beer wrote: > Markus Elfring wrote: > > From: Markus Elfring > > 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 > > --- > > drivers/video/fbdev/stifb.c | 4 +--- > > 1 file changed, 1 insertion(+), 3 deletions(-) > > > > diff --git a/drivers/video/fbdev/stifb.c b/drivers/video/fbdev/stifb.c > > index 6ded5c198998..fe217a2f7d21 100644 > > --- a/drivers/video/fbdev/stifb.c > > +++ b/drivers/video/fbdev/stifb.c > > @@ -1126,10 +1126,8 @@ static int __init stifb_init_fb(struct sti_struct > > *sti, int bpp_pref) int bpp, xres, yres; > > > > fb = kzalloc(sizeof(*fb), GFP_ATOMIC); > > - if (!fb) { > > - printk(KERN_ERR "stifb: Could not allocate stifb structure\n"); > > + if (!fb) > > return -ENODEV; > > - } > > > > info = &fb->info; > > This should be -ENOMEM. Markus, please fix this issue first (before doing cleanups). Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics