From patchwork Thu May 15 07:55:05 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Daeseok Youn X-Patchwork-Id: 4179771 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 84B84BFF02 for ; Thu, 15 May 2014 07:55:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id AB51920380 for ; Thu, 15 May 2014 07:55:44 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C279F2037E for ; Thu, 15 May 2014 07:55:43 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754629AbaEOHzn (ORCPT ); Thu, 15 May 2014 03:55:43 -0400 Received: from mail-pb0-f49.google.com ([209.85.160.49]:48924 "EHLO mail-pb0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754152AbaEOHzm (ORCPT ); Thu, 15 May 2014 03:55:42 -0400 Received: by mail-pb0-f49.google.com with SMTP id jt11so760345pbb.8 for ; Thu, 15 May 2014 00:55:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:cc:subject:message-id:mime-version:content-type :content-disposition:user-agent; bh=RooS1yScc/51wnSZ5Mh/H/Ezv12+EEIy8dQCktoIGJw=; b=mZKtSFHZhM4qly0GHGUz24boblMqXnURO0xl4cJhDf6T6m64HNuOyFCFtyZmjQsMrt WGQwCA9D2SeD6W7hfdY8vSPPRAOxvMCjU7PRy2609pd2FG4N8wG6jJVC8eRCsk4CesEL s6vuFoJHNbe5AsP1b8ocNRazycuLnF6X5q1kFfBRoQuJ7nKKgBY0ea6iwDDffuJuIMU3 pWKJydpqAwwsNisBqe82s9XPvFzx9H5jpJT46px70DCdGvADDRO0U+qF+L2iNXXqCx2e GLN+KiFHO7VbgJCQnStFCU4S1kLz/NSS+FOQqrlsQ5IBk/mtz1FSl+wR9FMda4ApYf7D 0ddg== X-Received: by 10.66.189.106 with SMTP id gh10mr10687454pac.31.1400140541945; Thu, 15 May 2014 00:55:41 -0700 (PDT) Received: from devel.8.8.4.4 ([220.149.236.66]) by mx.google.com with ESMTPSA id vm3sm7488308pbc.45.2014.05.15.00.55.39 for (version=TLSv1 cipher=RC4-SHA bits=128/128); Thu, 15 May 2014 00:55:41 -0700 (PDT) Date: Thu, 15 May 2014 16:55:05 +0900 From: Daeseok Youn To: plagnioj@jcrosoft.com Cc: tomi.valkeinen@ti.com, jg1.han@samsung.com, daeseok.youn@gmail.com, daniel.vetter@ffwll.ch, Julia.Lawall@lip6.fr, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] video : remove redundant error check Message-ID: <20140515075505.GA28119@devel.8.8.4.4> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-12-10) Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-7.4 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, T_DKIM_INVALID, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From 060757f81f85babf393cc76714d49af25af7791d Mon Sep 17 00:00:00 2001 From: Daeseok Youn Date: Thu, 15 May 2014 16:51:35 +0900 Subject: [PATCH] video : remove redundant error check It doesn't need to check "err" for printing info. And also use pr_info instead of printk. Signed-off-by: Daeseok Youn --- drivers/video/fbdev/i810/i810_main.c | 7 +++---- 1 files changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/video/fbdev/i810/i810_main.c b/drivers/video/fbdev/i810/i810_main.c index bb674e4..15cb397 100644 --- a/drivers/video/fbdev/i810/i810_main.c +++ b/drivers/video/fbdev/i810/i810_main.c @@ -1910,13 +1910,12 @@ static void i810fb_find_init_mode(struct fb_info *info) for (i = 0; i < par->ddc_num + 1; i++) { err = i810_probe_i2c_connector(info, &par->edid, i); - if (!err) + if (!err) { + pr_info("i810fb_init_pci: DDC probe successful\n"); break; + } } - if (!err) - printk("i810fb_init_pci: DDC probe successful\n"); - fb_edid_to_monspecs(par->edid, specs); if (specs->modedb == NULL)