From patchwork Tue Apr 30 06:16:18 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 2503361 Return-Path: X-Original-To: patchwork-linux-media@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id 63C013FD85 for ; Tue, 30 Apr 2013 06:29:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752891Ab3D3G3M (ORCPT ); Tue, 30 Apr 2013 02:29:12 -0400 Received: from mail-pd0-f176.google.com ([209.85.192.176]:37775 "EHLO mail-pd0-f176.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752680Ab3D3G3L (ORCPT ); Tue, 30 Apr 2013 02:29:11 -0400 Received: by mail-pd0-f176.google.com with SMTP id r10so127412pdi.7 for ; Mon, 29 Apr 2013 23:29:11 -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=UiI9kd7M+U92xMyKNwKPljyzVl44aFjXIt5/KBCZpkI=; b=faPsnQhxuhGfnK5Y14m5QCQNmgONXiHv/G6NOufAk053gH/6tyFRcQMb20mQA3dKk7 aWZWe8eQVA3fO/wJGc9mFOm9/2sBBkO7a0yqJHxu/O8jY63Vw4BUdiS6NbuvrZRAfFzP +/oOGcyajStqxyPzvKGlSFnqieg9XZMnq4k0CqsZkABIp8U4Uq1jo8oPFmVVVyJgeWm0 GX7dcSqgheX10QGuUcElGbMCr9t3WreTF824wHeFBDYJp8uqKQ4zNTIady/2uozAvmcO KRVqPc1slTeNFxCi43HT3/wwVAEZTSN7h7A7MuBy8IA7biUveGcO1cpUFCTlKL1EFBSy Xsxg== X-Received: by 10.68.51.39 with SMTP id h7mr74738743pbo.155.1367303351293; Mon, 29 Apr 2013 23:29:11 -0700 (PDT) Received: from linaro.sisodomain.com ([115.113.119.130]) by mx.google.com with ESMTPSA id lq5sm1934904pab.19.2013.04.29.23.29.08 for (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Apr 2013 23:29:10 -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/4] [media] s3c-camif: Remove redundant NULL check Date: Tue, 30 Apr 2013 11:46:18 +0530 Message-Id: <1367302581-15478-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.9.5 X-Gm-Message-State: ALoCoQn51Kcw0JgsgbTIqAvXopXelZNnI0CBYNKgguSxn6N7/8SX2zKuUcD+P5jMNYlFEmZfZTeH 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/s3c-camif/camif-core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/media/platform/s3c-camif/camif-core.c b/drivers/media/platform/s3c-camif/camif-core.c index 0d0fab1..2449f13 100644 --- a/drivers/media/platform/s3c-camif/camif-core.c +++ b/drivers/media/platform/s3c-camif/camif-core.c @@ -341,7 +341,7 @@ static void camif_clk_put(struct camif_dev *camif) int i; for (i = 0; i < CLK_MAX_NUM; i++) { - if (IS_ERR_OR_NULL(camif->clock[i])) + if (IS_ERR(camif->clock[i])) continue; clk_unprepare(camif->clock[i]); clk_put(camif->clock[i]);