From patchwork Sun Apr 3 12:54:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tormod Volden X-Patchwork-Id: 684141 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id p33CsBC0015084 for ; Sun, 3 Apr 2011 12:54:12 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752370Ab1DCMyM (ORCPT ); Sun, 3 Apr 2011 08:54:12 -0400 Received: from mail-wy0-f174.google.com ([74.125.82.174]:53617 "EHLO mail-wy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752369Ab1DCMyL (ORCPT ); Sun, 3 Apr 2011 08:54:11 -0400 Received: by wya21 with SMTP id 21so4027451wya.19 for ; Sun, 03 Apr 2011 05:54:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references; bh=u0NPe8RG0fABp8Lln4fIDpI6rKdmyJojWdEvOzWjlCc=; b=a9DtLJZC6Zun1sgjnd2ZkOCuytgtWKZCpkq3vsjyec5uCOOJfz4PoRJC8jvOPlxEbw 5fpAN/H+e8I7XTBQTa9ldPUWFiFmRfOk848ZaZrmTAr7Aq6kT894sOqRGZy/bPCyhcSt ENMYeGW+AxfBD0kELxrV9XMfdLP9p/qO1WNGI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=PbqqVW63Kv1yRhY7Nr16WwuXbHPqFG6WbKsofJ2BnMcYgfMOlOVnKpR9mMpK1d5Q7T c/08Iak+gqCNXuiH58d08DhKbtm/jrSxmJGenqmVvvPldUr92m094jQzTT38CHsM9YmK IRADQv51T42QggtiIm59xQVoIoKWykSua+68M= Received: by 10.216.69.203 with SMTP id n53mr2746928wed.88.1301835250569; Sun, 03 Apr 2011 05:54:10 -0700 (PDT) Received: from localhost.localdomain (80-219-113-251.dclient.hispeed.ch [80.219.113.251]) by mx.google.com with ESMTPS id t11sm1804878wes.17.2011.04.03.05.54.09 (version=SSLv3 cipher=OTHER); Sun, 03 Apr 2011 05:54:10 -0700 (PDT) From: Tormod Volden To: linux-fbdev@vger.kernel.org Cc: Antonino Daplas Subject: [PATCH] savagefb: Remove obsolete else clause in savage_setup_i2c_bus Date: Sun, 3 Apr 2011 14:54:06 +0200 Message-Id: <1301835246-6520-3-git-send-email-lists.tormod@gmail.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1301835246-6520-1-git-send-email-lists.tormod@gmail.com> References: <1301835246-6520-1-git-send-email-lists.tormod@gmail.com> Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.6 (demeter1.kernel.org [140.211.167.41]); Sun, 03 Apr 2011 12:54:12 +0000 (UTC) From: Tormod Volden The else clause was not needed after the cleanup in commit b8901b091db260b0f0101d6395ce5c6016835a47 Signed-off-by: Tormod Volden --- I could probably have sent this to some janitor list instead? Tormod drivers/video/savage/savagefb-i2c.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-) diff --git a/drivers/video/savage/savagefb-i2c.c b/drivers/video/savage/savagefb-i2c.c index 5e7acda..bb71fea 100644 --- a/drivers/video/savage/savagefb-i2c.c +++ b/drivers/video/savage/savagefb-i2c.c @@ -159,8 +159,7 @@ static int savage_setup_i2c_bus(struct savagefb_i2c_chan *chan, else dev_warn(&chan->par->pcidev->dev, "Failed to register I2C bus %s.\n", name); - } else - chan->par = NULL; + } return rc; }