From patchwork Wed Jun 5 06:12:59 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 17536 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-fa0-f70.google.com (mail-fa0-f70.google.com [209.85.161.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1CC7F25A2B for ; Wed, 5 Jun 2013 06:27:23 +0000 (UTC) Received: by mail-fa0-f70.google.com with SMTP id m1sf255578fam.1 for ; Tue, 04 Jun 2013 23:27:21 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-beenthere:x-forwarded-to:x-forwarded-for :delivered-to:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=uzkaFENEilRRILKECUG37OR+Ggj3aKtoX0jTFWmo5Kw=; b=LeUKRgQ4ENCO8JAGMwyRKIr9P3hQNd65lwdJ1D++PFXt0rus7MJjTzAzUSDo9a2mm+ bu+KQ5/SwelqZc5s//6EXsp7fuRNLR/8blG65bnx2yy2eNslnfLEB/fL+bZyzDp9xfTd mOleFl4ACnqrPZVdQ6WN4oHQ3LBuPXqFDqB6HOFTmExElxg+9Tt6spUEDvGjIw7vMGdb s5PdnhBQKnjLMoqwcLKpRjlxQsqS/hcKsDiu2f1fkEK86ZK1Flr5rGd2QjJE14eSkoIx b31uwauD++DoVh77Q2xQnLSgj15OrpMvUwut1KHTL1vztxkItBrZs5Ax1YIWRbO1U/yT Si8Q== X-Received: by 10.180.210.161 with SMTP id mv1mr1862469wic.1.1370413641581; Tue, 04 Jun 2013 23:27:21 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.180.21.145 with SMTP id v17ls1536660wie.45.canary; Tue, 04 Jun 2013 23:27:21 -0700 (PDT) X-Received: by 10.180.189.136 with SMTP id gi8mr5022822wic.11.1370413641140; Tue, 04 Jun 2013 23:27:21 -0700 (PDT) Received: from mail-ve0-x22f.google.com (mail-ve0-x22f.google.com [2607:f8b0:400c:c01::22f]) by mx.google.com with ESMTPS id z7si3700331wiy.27.2013.06.04.23.27.20 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 23:27:21 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c01::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c01::22f; Received: by mail-ve0-f175.google.com with SMTP id da11so923259veb.34 for ; Tue, 04 Jun 2013 23:27:20 -0700 (PDT) X-Received: by 10.220.246.8 with SMTP id lw8mr19747893vcb.8.1370413640064; Tue, 04 Jun 2013 23:27:20 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.221.10.206 with SMTP id pb14csp4035vcb; Tue, 4 Jun 2013 23:27:19 -0700 (PDT) X-Received: by 10.68.37.100 with SMTP id x4mr31721078pbj.122.1370413638966; Tue, 04 Jun 2013 23:27:18 -0700 (PDT) Received: from mail-pd0-f172.google.com (mail-pd0-f172.google.com [209.85.192.172]) by mx.google.com with ESMTPS id s9si44749262pan.259.2013.06.04.23.27.18 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 23:27:18 -0700 (PDT) Received-SPF: neutral (google.com: 209.85.192.172 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.192.172; Received: by mail-pd0-f172.google.com with SMTP id t10so1357925pdi.31 for ; Tue, 04 Jun 2013 23:27:18 -0700 (PDT) X-Received: by 10.68.13.168 with SMTP id i8mr32061958pbc.86.1370413638407; Tue, 04 Jun 2013 23:27:18 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id vb8sm66600749pbc.11.2013.06.04.23.27.15 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 04 Jun 2013 23:27:17 -0700 (PDT) From: Sachin Kamat To: linux-pm@vger.kernel.org Cc: myungjoo.ham@samsung.com, kyungmin.park@samsung.com, a.kesavan@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/3] PM / devfreq: Fix incorrect usage of IS_ERR_OR_NULL in exynos5_bus.c Date: Wed, 5 Jun 2013 11:42:59 +0530 Message-Id: <1370412781-20683-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQnbjHhXvwWjJnVCtCZ1WOrO9sZ/bX48RISVcXiPHYLWehn2IrBFxj/imkOVKkXU0fGtRmKb X-Original-Sender: sachin.kamat@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c01::22f is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , platform_device_register_simple does not return NULL. Hence NULL check is not required. Signed-off-by: Sachin Kamat --- drivers/devfreq/exynos/exynos5_bus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/devfreq/exynos/exynos5_bus.c b/drivers/devfreq/exynos/exynos5_bus.c index 574b16b..cd1e630 100644 --- a/drivers/devfreq/exynos/exynos5_bus.c +++ b/drivers/devfreq/exynos/exynos5_bus.c @@ -479,7 +479,7 @@ static int __init exynos5_busfreq_int_init(void) exynos5_devfreq_pdev = platform_device_register_simple("exynos5-bus-int", -1, NULL, 0); - if (IS_ERR_OR_NULL(exynos5_devfreq_pdev)) { + if (IS_ERR(exynos5_devfreq_pdev)) { ret = PTR_ERR(exynos5_devfreq_pdev); goto out1; }