From patchwork Tue Oct 1 12:46:41 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Szyprowski X-Patchwork-Id: 174858 Delivered-To: patch@linaro.org Received: by 2002:a92:7e96:0:0:0:0:0 with SMTP id q22csp8497240ill; Tue, 1 Oct 2019 05:46:51 -0700 (PDT) X-Google-Smtp-Source: APXvYqyBATMTPYaBUgmsaA5wHsxPGtLTF8SmXtC4oo7oICiNWYAr7YBl70Ec0YpWMukNEwGVGjoK X-Received: by 2002:a05:6402:17eb:: with SMTP id t11mr24517539edy.97.1569934011479; Tue, 01 Oct 2019 05:46:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1569934011; cv=none; d=google.com; s=arc-20160816; b=OJSo63bvqIlxBBhuFC7CYwSXIEUo7JEKnGmgACrRHNDlp5EHqfbnVZLXeFRaCJ9HiB ta4ep3RD14tmht942wHCowzPyIFnU5GvJ1UiysXQ1QpfWEsohyqd3IpPdFo8kCtleu2t 62nXxJtvIrekm+AI6stt0VB0jzvg9lvMzVo7TQeawcT2/ZbOKiYo5onJHZwKlAvCnTLg tBkk6Cw3AOpypvW+olwRLMtG4l3otAJNDjeGKLSJIq6ocsI077Ip1QBRJHur0tRV4M+R rqETo0R7KmTmTCD9wO0+3vi17535G/d8z3jXXudiJFB8ndTW1ht8FSBH1UT+HqQOSt7a Jo4w== 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:message-id:date :subject:cc:to:from:dkim-signature:dkim-filter; bh=g4kxurFt+usEuNVWHXBojGkOdXeORyctrr+zEEwPBu8=; b=Z8QjFXWLCSU9Kh7gKEBhwALUW/mjm1JZbUIeBmONC2IZThxjmAotMafhhqZ+riT1+N g8CD+/JvDmsnqK9iWhNZLXsGr3rZnTNZus9mc2gr8KADnQxpmb+tmit4EB5XSpsi+whU JDk912XfU7eG1YxerEd6AA70dqiyG2pUPY3JisdY5FpVEvd+JsaEISMbt6xVl+2VfOjO uIewXUYQ1L8M6QmmBhpiCZJYBLi8w0VyVMhrkXxOhRsqJ4cs7AJFpBF4CF8HdioYtvLk GvKDoOZlRM+w7juRPRWfROL66ogZT6gAcUu1Par98hnnt4jChiLPllqN93EX026b+TY2 Pcuw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@samsung.com header.s=mail20170921 header.b="P8/SIVsN"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 k32si9199680ede.244.2019.10.01.05.46.51; Tue, 01 Oct 2019 05:46:51 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-samsung-soc-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="P8/SIVsN"; spf=pass (google.com: best guess record for domain of linux-samsung-soc-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-samsung-soc-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 S2387956AbfJAMqs (ORCPT + 3 others); Tue, 1 Oct 2019 08:46:48 -0400 Received: from mailout2.w1.samsung.com ([210.118.77.12]:33690 "EHLO mailout2.w1.samsung.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725821AbfJAMqs (ORCPT ); Tue, 1 Oct 2019 08:46:48 -0400 Received: from eucas1p2.samsung.com (unknown [182.198.249.207]) by mailout2.w1.samsung.com (KnoxPortal) with ESMTP id 20191001124646euoutp0211042feac59ece073d07ccc48f30704c~JhqlL2yym1863818638euoutp02- for ; Tue, 1 Oct 2019 12:46:46 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 mailout2.w1.samsung.com 20191001124646euoutp0211042feac59ece073d07ccc48f30704c~JhqlL2yym1863818638euoutp02- DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=samsung.com; s=mail20170921; t=1569934006; bh=g4kxurFt+usEuNVWHXBojGkOdXeORyctrr+zEEwPBu8=; h=From:To:Cc:Subject:Date:References:From; b=P8/SIVsNjNe/JZMbyaBNZJ8Oqa7+xidf8ZmHQB13IOrdFZiR9eZfSiadHYRPlCc4F KLvOFYVZrf1KhuyOL2m2yz90ds1ccfINns/EXfDPgBv433C5SswU2SEZGe/aLdjUUd HKEOCGLZm9tEHStL7zdP8NQ6pcTRY3dDZ25TiG+I= Received: from eusmges1new.samsung.com (unknown [203.254.199.242]) by eucas1p1.samsung.com (KnoxPortal) with ESMTP id 20191001124646eucas1p17f969e2e45fd7cf51001bfa59319fa21~Jhqk9tmbk1929719297eucas1p1H; Tue, 1 Oct 2019 12:46:46 +0000 (GMT) Received: from eucas1p1.samsung.com ( [182.198.249.206]) by eusmges1new.samsung.com (EUCPMTA) with SMTP id 03.B5.04469.6BA439D5; Tue, 1 Oct 2019 13:46:46 +0100 (BST) Received: from eusmtrp1.samsung.com (unknown [182.198.249.138]) by eucas1p2.samsung.com (KnoxPortal) with ESMTPA id 20191001124646eucas1p2768afab3fc8fbaaf7c2bcf1966b06781~JhqkniZMT1512015120eucas1p2f; Tue, 1 Oct 2019 12:46:46 +0000 (GMT) Received: from eusmgms1.samsung.com (unknown [182.198.249.179]) by eusmtrp1.samsung.com (KnoxPortal) with ESMTP id 20191001124646eusmtrp1aab8f1b17880523fae614ca86bb66c11~Jhqkm5lRA0994609946eusmtrp1V; Tue, 1 Oct 2019 12:46:46 +0000 (GMT) X-AuditID: cbfec7f2-54fff70000001175-9c-5d934ab63bdb Received: from eusmtip1.samsung.com ( [203.254.199.221]) by eusmgms1.samsung.com (EUCPMTA) with SMTP id 2F.2C.04166.6BA439D5; Tue, 1 Oct 2019 13:46:46 +0100 (BST) Received: from AMDC2765.digital.local (unknown [106.120.51.73]) by eusmtip1.samsung.com (KnoxPortal) with ESMTPA id 20191001124645eusmtip1af28125b5d52687f5dcd1fab59205eb7~JhqkIJMge2139721397eusmtip1B; Tue, 1 Oct 2019 12:46:45 +0000 (GMT) From: Marek Szyprowski To: linux-pm@vger.kernel.org, linux-samsung-soc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Marek Szyprowski , Chanwoo Choi , MyungJoo Ham , Krzysztof Kozlowski , Bartlomiej Zolnierkiewicz Subject: [PATCH] PM / devfreq: exynos-ppmu: remove useless assignment Date: Tue, 1 Oct 2019 14:46:41 +0200 Message-Id: <20191001124641.22896-1-m.szyprowski@samsung.com> X-Mailer: git-send-email 2.17.1 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrOIsWRmVeSWpSXmKPExsWy7djPc7rbvCbHGvz/IWOxccZ6VovrX56z Wpw/v4Hd4vKuOWwWn3uPMFrMOL+PyWLtkbvsFrcbV7A5cHhsWtXJ5tG3ZRWjx+dNcgHMUVw2 Kak5mWWpRfp2CVwZ225+Yys4wlbx/f9+9gbG3axdjJwcEgImEhumTGYBsYUEVjBKrO3w7GLk ArK/MEo8ujKNBcL5zCjxc+sduI412y5DJZYzSjy+f54druXm6o3MIFVsAoYSXW+72LoYOThE BOIl1n+1AgkzCzxklOibYAJiCwu4Skz61g+2mkVAVeLeirtgrbwCthKnpt5mh1gmL7F6wwFm CPsMm8T9RlkI20Xi3JkzUDXCEq+Ob4GyZSROT+4BO05CoJlR4uG5tewQTg+jxOWmGYwQVdYS h49fZAU5jllAU2L9Ln2IsKPEsabZYGEJAT6JG28FIW7mk5i0bTozRJhXoqNNCKJaTWLW8XVw aw9euAR1pofEhM6PYFOEBGIlLjfmTGCUm4WwagEj4ypG8dTS4tz01GLDvNRyveLE3OLSvHS9 5PzcTYzA6D/97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mIOF371N94aPf+ClNBW7XEDyr8nELeR3uLfb14J5adU2Ipzkg01GIuKk4EAEmDSFRUAgAA X-CMS-MailID: 20191001124646eucas1p2768afab3fc8fbaaf7c2bcf1966b06781 X-Msg-Generator: CA X-RootMTR: 20191001124646eucas1p2768afab3fc8fbaaf7c2bcf1966b06781 X-EPHeader: CA CMS-TYPE: 201P X-CMS-RootMailID: 20191001124646eucas1p2768afab3fc8fbaaf7c2bcf1966b06781 References: Sender: linux-samsung-soc-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-samsung-soc@vger.kernel.org The error code is propagated to the caller, so there is no need to keep it additionally in the unused variable. Signed-off-by: Marek Szyprowski --- drivers/devfreq/event/exynos-ppmu.c | 1 - 1 file changed, 1 deletion(-) -- 2.17.1 Acked-by: Chanwoo Choi diff --git a/drivers/devfreq/event/exynos-ppmu.c b/drivers/devfreq/event/exynos-ppmu.c index 87b42055e6bc..85c7a77bf3f0 100644 --- a/drivers/devfreq/event/exynos-ppmu.c +++ b/drivers/devfreq/event/exynos-ppmu.c @@ -673,7 +673,6 @@ static int exynos_ppmu_probe(struct platform_device *pdev) for (i = 0; i < info->num_events; i++) { edev[i] = devm_devfreq_event_add_edev(&pdev->dev, &desc[i]); if (IS_ERR(edev[i])) { - ret = PTR_ERR(edev[i]); dev_err(&pdev->dev, "failed to add devfreq-event device\n"); return PTR_ERR(edev[i]);