Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp1533462ybb; Sat, 11 Apr 2020 05:53:14 -0700 (PDT) X-Google-Smtp-Source: APiQypL/noDSG6h6l3g/PX+2Wl4T1rkwLCGSFA8P1hQNmYdJVvi3bFzbArcqLP78rAU20+VSEtST X-Received: by 2002:a05:6214:924:: with SMTP id dk4mr9216611qvb.140.1586609594651; Sat, 11 Apr 2020 05:53:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1586609594; cv=none; d=google.com; s=arc-20160816; b=0w9aS+EHqHPsUf9p/vH4UnTX7fjRlKlgdc0Hn4vEVJ+UgAya3/JDfPsW9eUlhiRgN4 Svt+9jqW1WvhzlIeBXIBeVKVmCpimf8NnyEwf3+kh2csSByi5OTwhI2p+p9rIrihypjN aeVU2LsN4ajxm05VPt08XENfYqNNmWFYq/5kLe7vD3j+InzTiX4MA2EfRTkj474QJbAe Kpp5vP+trwcQDfXcjkhl5O+GUcIsWrUr8zEoBfIQbI4WN4pl2/TZrGEbbU7tr/me8X23 mlQZYqDvH/Px21hpchqAZiCYL2OH25oyBrhFhsPgTajuxjpPAwipcHwXtOuSgagsNlqi 8tcQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=gv6I3LQQU3cIjk6uKwDYBMiJu7zZe3giAzctkOhGgYA=; b=h3JS7UBr8ve7aGUWpv77bcNTex1BxgWIWdwA9Zu3CChMB+eaJurkwUzvwVgICnQgk6 XNZ6auW97GOD3afJlAMh+ZqVHvditvkJk7ObiP8RLQj5lEqKOdQ2/PTGajbhJo34/h5q grv/gxGNmNGFb7bQoMQ5YdjKoh26eyujwaN4RgTOCgnTiiN9evvfETZKEVZzRy7AaW39 zqSTKJxHRCNFgFp8QO3j8KwiJLvBgRXqQclAW2IrKIX5wQHYgLYdn7GJnwLEHuCYCuFn NpxG67VtZljRwq3nwPVEopG2e+eUU2CVhTQA3VaN3M1aR7K6TzGsoXR/+Kyt8z0KlpT0 dhyw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmx.net header.s=badeba3b8450 header.b=QMamHu5f; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id y45si2663141qvf.7.2020.04.11.05.52.49; Sat, 11 Apr 2020 05:53:14 -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=@gmx.net header.s=badeba3b8450 header.b=QMamHu5f; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726140AbgDKMvh (ORCPT + 99 others); Sat, 11 Apr 2020 08:51:37 -0400 Received: from mout.gmx.net ([212.227.15.18]:38889 "EHLO mout.gmx.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726037AbgDKMvh (ORCPT ); Sat, 11 Apr 2020 08:51:37 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=gmx.net; s=badeba3b8450; t=1586609492; bh=P+/BvTIcjH35iVjfgxMJNRM/IZEW2+XYyu9OfnCgY5g=; h=X-UI-Sender-Class:From:To:Cc:Subject:Date; b=QMamHu5fxDtFfF3z/9dcjn/pHbSeAk0+WkTZZqwMnrEHZ6Xed42AKKkXAmavB46K6 zEUs9ES7+4twBXIbzNdXXGOu8yE2ssxe8TyQmNiMaWPlxTy1is/XpRlverGWr3qtXW J8GjJ6hnWHecb2ySghhValLNVl/MjSk6jPGWmXqg= X-UI-Sender-Class: 01bb95c1-4bf8-414a-932a-4f6e2808ef9c Received: from localhost.localdomain ([83.52.229.196]) by mail.gmx.com (mrgmx004 [212.227.17.184]) with ESMTPSA (Nemesis) id 1M26vL-1jPALq3pxB-002aPT; Sat, 11 Apr 2020 14:51:32 +0200 From: Oscar Carter To: Forest Bond , Greg Kroah-Hartman Cc: Oscar Carter , Malcolm Priestley , Quentin Deslandes , Amir Mahdi Ghorbanian , devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 0/2] staging: vt6656: Refactor the vnt_vt3184_init function Date: Sat, 11 Apr 2020 14:51:02 +0200 Message-Id: <20200411125104.9625-1-oscar.carter@gmx.com> X-Mailer: git-send-email 2.20.1 MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Provags-ID: V03:K1:UuQ0UtGMGBD59o4VJV5Zs3yYW9zRx6GV7q+pOX0p7VMKaXmWZMI l9z5FRQ6UezFd8tsg/CS0lwNBZW+yGUu8PMR3TeDBNKTAt9AI4/SZm2SEJKtIjDSBS23K2I oJHE63boNIiud9XMuisxKVlvjY7DUZvZOtEX7C/27+BnIfmg+bJaC2wtZjZ27KtQlFbte8b BB3Ke5zfXKM7u5aiMlUrQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:DDDFHtDXciw=:BJsLz2FqPiuICJT1vgj3rL xXU0RwJtrN+om0sb4WMKh0ACrkGPgVwJo9k37Z/pSwH5aJrs1Up0Kn1RednwsxAuOEmsJKsFu c7TaoNzH2sNyevGF66pjQFaT0vZ6nxh7xxe0cxGn+0EKdM01/23xVtj580UxDLFDsj+PsrHAv x4EQ6xmNwKUGAHyzl230mMksz4LEycTPI9vNc+TXSLm4G9uYe2EmHdjaHDUgw4odCYGYbvyM4 oebpKt8baYxThMPRbMywpYqkflRa7Qmxb6TOcL1MxxVumQW78Vb0T1ddcUw6DwrCYSCR/ezqF m2yqrekRIxWvGdKzXFt3Ka+RHKUdmCtQRAG2BnmFHgQGbNbgzVGu+X/0W67RKhX6lhzG0/yuo uTnFgLrOFQTvAkzsLKPD0n+TCpR3qRRcWp+zOYCdheP3W131/7gJstfPfIklRVti6xX22rLVO Av1oq8OQWur61fcYXcy3Rg3+TB7oP+P+m2u1oh+llCcL70IteZGRf57LEUcv8gWPDfeLt4+J8 kgKqWQNd2ytYwfI4iVVcWBIC+R1sSHBArmsG45SzynQdClKllOj0snswGjhNfdcHhRwukWRGK EGtfZBZp7EKDwKFCTNCowWz8a1TZV/4W1crTCpnn/TOMzVp5vhNfhjtQ6BeF+/QdJNDaOCRBX cZoJ4mQFg3d7uHwmeFQRvk7Com2blusni6hQsV+yMuFWxE1VtmpVS1tU4IPSNzXbR4tGBYMfk OSk67N/uLO4ExWRefO9KUi1bSMC1X9Sm/G6VpsT+qDJyELvx0AiFX0Iy1RTPR2FdhYJ3Gqlr1 P13Sj4+98QGreOfTcG1pON2W5IjPKOlb7Lq6AmL0jwlwsuXCWK9OrT9nxnDIgHJKGMMcY9L8b cT14i4amGN046JjOD5GyHQYfHISj9IouINwdpj8OPpXhAcNR71KevIgfZyZuGKNdsasdKLqzW cvSDAJEIjPH1U6XEEgV6Ob1FjBPqpSiWiL0QW2jp5Aoa92j0tNRY/P7a/IOrRXuTVt7yvvBUZ xK0IFq6zM3nu9jizpFd75DRMp2hyQye5PSrpacBWeJcYYEz5m2WxIlAB1123TCNev2oNk224q IndIxAjeKrMHRkvZDZaGu5mYdihKTQYP6sLiYyYWIOU7irFq8adoYbYum6d3I85bhh+Qr4fQS k/Bn+1CvHMOOjsJYrML9GlGJxpZyjEoMCozGY93mzoNnD8r2iyjFRdRqFSGAXi4kstyU7bTZF hQ2oRbFh3hFdcXHf4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This patch series makes a refactor of the vnt_vt3184_init function through two patches. The first one removes duplicate code in the if statements because different branches are almost the same. The second patch remove unnecessary local variable initialization. Oscar Carter (2): staging: vt6656: Remove duplicate code in vnt_vt3184_init function staging: vt6656: Remove unnecessary local variable initialization drivers/staging/vt6656/baseband.c | 54 ++++++++----------------------- 1 file changed, 13 insertions(+), 41 deletions(-) =2D- 2.20.1