Received: by 10.213.65.68 with SMTP id h4csp591469imn; Wed, 28 Mar 2018 09:06:20 -0700 (PDT) X-Google-Smtp-Source: AIpwx48idoGpU9Zq+h1noNex9SzqIA4jWEMlpEUC6hzu+VEnNzPgE5kC7p/vd1Vi6reRxFRQ5/1f X-Received: by 2002:a17:902:149:: with SMTP id 67-v6mr4488315plb.296.1522253180462; Wed, 28 Mar 2018 09:06:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522253180; cv=none; d=google.com; s=arc-20160816; b=wIevfR7WqVrC1P5SZzmeRnUaeIpNd28Ss03udaxJcJ567HrxnTpK8v/qherdBxp18q xJKSXkC61OsYPABNw2Q8Q1YwRP56vIMyZEObe6VI4oRjeByxRb9Qlfh1/CvaEzY6kQ2v rl1R9jQdKdLi/wSkjKtPOutf5Ie0cDLwpkacVkb3pxUq9N7purkqO/EeAOjH779DQ4H5 /8DMPF0+5s0x1Qq7hbDc++4RpbrTmE2yqu3FPxZy5qXMpai/p0UtNRpOdXESs9X/xAq2 E95UjilGeiQE4Gwkr6RIo3XZFj+z1qrqFBwVHBExBGatM0drCvcbbqqjYEspE22qgtfX xJUQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:cms-type :content-transfer-encoding:mime-version:in-reply-to:user-agent :message-id:date:subject:cc:to:from:dkim-signature:dkim-filter :arc-authentication-results; bh=TuxZ/xUReTpax00/sdPaNpp0CySpYx9d5EOpB8XAxNM=; b=sbwHKCEv0CGlO6gKjV/rly63VNoy9l0rs34UjhoQnn5OzJ8lCi2c8ucfl3Rx7sJ7Hw je8VdkMIZrpnzMl9XhV2uiXwghxw2Pwtl3Tr4L+IJA0SzxxfQdzwXhwWPFHqNStbd5QI UUbiksLpp1o/1rH7tVW4IqiUmZVCjxJRP9+KabCDtWbY/602Wh+igkvxp4mK8/9OYClU fNSMrczJRh193ZWShPgqsB/74Ouc/29T4qGDVuv4EyuQKGt+s6vYnmJmUXoblmGd5HSS A3nEgjnNDWnjmbU8sWCH7dcAksRFeVQvjLyUPTMFRpFbG5cQ1OUQXiGqk68N5/+2I9GV nYEg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qdhxJuW8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a92-v6si3910106pla.107.2018.03.28.09.06.05; Wed, 28 Mar 2018 09:06:20 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b=qdhxJuW8; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=samsung.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753272AbeC1Nql (ORCPT + 99 others); Wed, 28 Mar 2018 09:46:41 -0400 Received: from mailout2.samsung.com ([203.254.224.25]:21973 "EHLO mailout2.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752322AbeC1Nqh (ORCPT ); Wed, 28 Mar 2018 09:46:37 -0400 Received: from epcas1p4.samsung.com (unknown [182.195.41.48]) by mailout2.samsung.com (KnoxPortal) with ESMTP id 20180328134635epoutp02d60e6a01e5909b326507d17e2c738184~gGZOEhvkt1176511765epoutp02B; Wed, 28 Mar 2018 13:46:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.samsung.com 20180328134635epoutp02d60e6a01e5909b326507d17e2c738184~gGZOEhvkt1176511765epoutp02B DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1522244795; bh=TuxZ/xUReTpax00/sdPaNpp0CySpYx9d5EOpB8XAxNM=; h=From:To:Cc:Subject:Date:In-reply-to:References:From; b=qdhxJuW8qw0zB/fNKSxc5kRJLuq0l/IvvVdjdFjo0NiBu0F3bUu+SRD0p8XWFwMYF wi1H9L0E30b3B7h73rm4AVdcH31YYqGPvxXXsren/piXMJOViiz0GaSGcB5+BUdL2x 3Ft/W0sb8obBe2mzDgjGUYs/LvQkltQ9Lr6D1HMk= Received: from epsmges1p1.samsung.com (unknown [182.195.42.53]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180328134635epcas1p249ce273244679cc74424e2d2152edd63~gGZN2lO0e3148531485epcas1p22; Wed, 28 Mar 2018 13:46:35 +0000 (GMT) Received: from epcas1p1.samsung.com ( [182.195.41.45]) by epsmges1p1.samsung.com (Symantec Messaging Gateway) with SMTP id 05.52.04078.BBC9BBA5; Wed, 28 Mar 2018 22:46:35 +0900 (KST) Received: from epsmgms2p1new.samsung.com (unknown [182.195.42.142]) by epcas1p2.samsung.com (KnoxPortal) with ESMTP id 20180328134634epcas1p28ec498b51d8834599d4bf863a5836a59~gGZNgpnyS2081120811epcas1p2U; Wed, 28 Mar 2018 13:46:34 +0000 (GMT) X-AuditID: b6c32a35-139ff70000000fee-ea-5abb9cbbbd40 Received: from epmmp1.local.host ( [203.254.227.16]) by epsmgms2p1new.samsung.com (Symantec Messaging Gateway) with SMTP id 0F.93.03849.ABC9BBA5; Wed, 28 Mar 2018 22:46:34 +0900 (KST) Received: from amdc3058.localnet ([106.120.53.102]) by mmp1.samsung.com (Oracle Communications Messaging Server 7.0.5.31.0 64bit (built May 5 2014)) with ESMTPA id <0P6A000V7ZLL3P20@mmp1.samsung.com>; Wed, 28 Mar 2018 22:46:34 +0900 (KST) From: Bartlomiej Zolnierkiewicz To: SF Markus Elfring Cc: linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, Steve Glendinning , LKML , kernel-janitors@vger.kernel.org Subject: Re: [PATCH v3 1/3] video: smscufx: Less checks in ufx_usb_probe() after error detection Date: Wed, 28 Mar 2018 15:46:32 +0200 Message-id: <1923231.ySCFlVkifY@amdc3058> User-Agent: KMail/4.13.3 (Linux/3.13.0-96-generic; KDE/4.13.3; x86_64; ; ) In-reply-to: <03be4276-520e-1d22-1c6e-e35c8df2b1e8@users.sourceforge.net> MIME-version: 1.0 Content-transfer-encoding: 7Bit Content-type: text/plain; charset="us-ascii" X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrNIsWRmVeSWpSXmKPExsWy7bCmru7uObujDK6eZ7W48vU9m8X5zuXM FltvSVuc6PvAanF51xw2i+ZPr5gc2Dzudx9n8vjffJnFo+lUO6vH501yASxRXDYpqTmZZalF +nYJXBl3PnxnKXjBVnHn2G2mBsZ9rF2MnBwSAiYSE3avZ+xi5OIQEtjBKDHnyG1mkISQwHdG iSVdGl2MHGBFj8+wQYR3M0pMnBMPUf+VUWLhsr2MIAk2ASuJie2rGEHqRQRMJf6cCAEJMwvs ZZT4eYEDxBYWSJK48OQbO4jNIqAqcWLSdrAbeAU0JT7O3Qm2VlTAS2LLvnYmEJtTwFPi9M25 7BA1ghI/Jt9jgZgpL7Fv/1RWCFtH4uyxdYwQv2xhkzi7Hcp2kWhfspoNwhaWeHV8CzvEK9IS l47agpwvIdDMKPFtxx5miJoJjBJ71gtB2NYSh49fhJrPJ/Huaw8rRC+vREcbVImHxJS1B1kg wo4SrzYEQkLkNqPE5KaVrBMYZWchuXoWkqtnIbl6ASPzKkax1ILi3PTUYsMCQ73ixNzi0rx0 veT83E2M4CSgZbqDcco5n0OMAhyMSjy8BTG7ooRYE8uKK3MPMUpwMCuJ8L7X2B0lxJuSWFmV WpQfX1Sak1p8iFGag0VJnDcgwCVKSCA9sSQ1OzW1ILUIJsvEwSnVwLip/d2yO/YZBzTsGc8X dnRaMJYuNSoQt6kQX3w/qejv/bZihov33lzpbHx+rG/W91dMB3dFilqK9Av/VLu9MtLqEbve Nd2WxiK92Dti65dN7Vn9/s/dix+r4pyiGtdoTMz7/OJt2i+fKt5Ig0+Vq3RWcxqW2Ot4Ozl1 nDCJvfc36HR9X+j7RCWW4oxEQy3mouJEADqdQ/3+AgAA X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrJLMWRmVeSWpSXmKPExsVy+t9jAd1dc3ZHGbTf1bW48vU9m8X5zuXM FltvSVuc6PvAanF51xw2i+ZPr5gc2Dzudx9n8vjffJnFo+lUO6vH501yASxRXDYpqTmZZalF +nYJXBl3PnxnKXjBVnHn2G2mBsZ9rF2MHBwSAiYSj8+wdTFycQgJ7GSUONCzGcr5yiixYfMU 9i5GTg42ASuJie2rGEEaRARMJf6cCAGpYRbYyyjxqfsqK0iNsECSxIUn38DqWQRUJU5M2g4W 5xXQlPg4dycziC0q4CWxZV87E4jNKeApcfrmXHaIZXcZJRo+b2eEaBCU+DH5HguIzSwgL7Fv /1RWCFtLYv3O40wTGPlnISmbhaRsFpKyBYzMqxglUwuKc9Nzi40KDPNSy/WKE3OLS/PS9ZLz czcxAgN422Gtvh2M95fEH2IU4GBU4uEtiNkVJcSaWFZcmXuIUYKDWUmE973G7igh3pTEyqrU ovz4otKc1OJDjNIcLErivLfzjkUKCaQnlqRmp6YWpBbBZJk4OKUaGNsui2lOnu0Y0vv9xvqW f4K9cvU/f5m8bxPmns9mmF1lWpqyf/NqQS33SUJr8sKDBOoP3Z2/38RuT9ChU/emfI3OuVDR 4vi18fmtz9Oet0zceUTqgYL9nwlTb+is/sJu1iIlvDTl6DG924kXBV47iia/a7OJvzNNLLFt zqnUnSvvHxK+EDjzR6QSS3FGoqEWc1FxIgA5HjmdXAIAAA== X-CMS-MailID: 20180328134634epcas1p28ec498b51d8834599d4bf863a5836a59 X-Msg-Generator: CA CMS-TYPE: 101P X-CMS-RootMailID: 20171125204312epcas2p149d6487ac83e886f95aefe0b35aef1b0 X-RootMTR: 20171125204312epcas2p149d6487ac83e886f95aefe0b35aef1b0 References: <03be4276-520e-1d22-1c6e-e35c8df2b1e8@users.sourceforge.net> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sunday, January 07, 2018 05:02:21 PM SF Markus Elfring wrote: > From: Markus Elfring > Date: Sun, 7 Jan 2018 15:56:11 +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 analysis. > > * Return directly after a call of the function "kzalloc" failed > at the beginning. > > * Adjust jump targets so that extra checks can be omitted at the end. > > * Delete initialisations for the variables "info" and "retval" > which became unnecessary with this refactoring. > > Signed-off-by: Markus Elfring Patch queued for 4.17, thanks. Best regards, -- Bartlomiej Zolnierkiewicz Samsung R&D Institute Poland Samsung Electronics