From patchwork Tue Apr 30 04:51:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2503291 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork2.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork2.kernel.org (Postfix) with ESMTP id 01505DF5B1 for ; Tue, 30 Apr 2013 05:04:26 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751920Ab3D3FEY (ORCPT ); Tue, 30 Apr 2013 01:04:24 -0400 Received: from mail-da0-f53.google.com ([209.85.210.53]:59979 "EHLO mail-da0-f53.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751549Ab3D3FEX (ORCPT ); Tue, 30 Apr 2013 01:04:23 -0400 Received: by mail-da0-f53.google.com with SMTP id n34so73904dal.40 for ; Mon, 29 Apr 2013 22:04:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer :x-gm-message-state; bh=KT+QjdidIhxs9LtoMJw99nIKP1yjA3qfQ2X5jIAGGt0=; b=HRxWmZIzvCzrpxxLicEee8AQ/zXWVqRjsqi0m0vP2P1jJCvjOQIL+MyFjAgb5NDneY HkzjzmrUlksJcxch8SL4RKPzRIj8+CEwgdK9ILJ0QRvB1gmyS7VskyFD+fE2vFP5ycmv QkSs3Pwlk9qzY0KnhvqTbzk/Nc/4woDhVr6BzL/5T8Kn2O9nmtaMuj4Qac+olXq6LrMy xIDDiIGzwdLH/ar8sRPS0C8CTy+Lpsws6Crjp3b3KVCBe1Zw37iskAzZqDxMUOFOMiu4 5IEanq4qAhRTUFj9sEBSMToxbD+yhmQfMOkxgO/RPqJ89YbSyNFi+0UkStg8JqWzg4Ad Rs0g== X-Received: by 10.68.251.233 with SMTP id zn9mr8177420pbc.206.1367298262960; Mon, 29 Apr 2013 22:04:22 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id dr6sm28920440pac.11.2013.04.29.22.04.19 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 22:04:21 -0700 (PDT) From: Sachin Kamat To: linux-media@vger.kernel.org Cc: s.nawrocki@samsung.com, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] [media] exynos4-is: Remove redundant NULL check in fimc-lite.c Date: Tue, 30 Apr 2013 10:21:33 +0530 Message-Id: <1367297493-31782-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQkan5to9bOjv3ziEFlA17fkOV1aTnf8e9J0oevQpEBLDLkIQe6qHb+JEF4JqwhlAKuUbjEH Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org clk_unprepare checks for NULL pointer. Hence convert IS_ERR_OR_NULL to IS_ERR only. Signed-off-by: Sachin Kamat --- drivers/media/platform/exynos4-is/fimc-lite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c index 661d0d1..2a0ef82 100644 --- a/drivers/media/platform/exynos4-is/fimc-lite.c +++ b/drivers/media/platform/exynos4-is/fimc-lite.c @@ -1416,7 +1416,7 @@ static void fimc_lite_unregister_capture_subdev(struct fimc_lite *fimc) static void fimc_lite_clk_put(struct fimc_lite *fimc) { - if (IS_ERR_OR_NULL(fimc->clock)) + if (IS_ERR(fimc->clock)) return; clk_unprepare(fimc->clock);