From patchwork Wed Jan 7 05:35:48 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5582041 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.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 5C348BF6C3 for ; Wed, 7 Jan 2015 05:36:06 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 96EED20254 for ; Wed, 7 Jan 2015 05:36:05 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id B8E932024C for ; Wed, 7 Jan 2015 05:36:04 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752448AbbAGFgD (ORCPT ); Wed, 7 Jan 2015 00:36:03 -0500 Received: from mail-pa0-f42.google.com ([209.85.220.42]:55248 "EHLO mail-pa0-f42.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752572AbbAGFgB (ORCPT ); Wed, 7 Jan 2015 00:36:01 -0500 Received: by mail-pa0-f42.google.com with SMTP id et14so2598982pad.1; Tue, 06 Jan 2015 21:36:01 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=RhE7vCMAjn8cS5qsGAzBorYu27EcwgLQ8WcjjquaEJU=; b=LWIUUt3rHxBhM9stxKGs5wdUGJgwTjuPUeeoZl7e6FQxH6FRU1/y8d6aDE2ITNux/f SNm4EMEfZsZ6EWNpcaJKDGyYQ5YKoszNByeXwQraDX6Ln3BDH0KdtaphIX1gUoe0xGav WwRdWEnqxLTbLD5VDWdwcT7p+0u+7tr6HTebdALup2XOAKaqTyeFkPnZvyRA0FcYgbiW sm6FSpKEIB5pP5NHxBv8VCPLS4FYZXrSgt5DBF7MhwpfqEf0kAeO/6rHbxeslfz9jEUQ iou/I+WaNgkVcfjp6bbTIGi+sKlwibYfA/NcSfyiIC4t+9tXyKjLAxqaEW6jva4aFM6B rimQ== X-Received: by 10.66.226.167 with SMTP id rt7mr2165684pac.12.1420608961252; Tue, 06 Jan 2015 21:36:01 -0800 (PST) Received: from localhost.localdomain ([122.169.180.146]) by mx.google.com with ESMTPSA id pr3sm547920pbb.37.2015.01.06.21.35.57 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 06 Jan 2015 21:36:00 -0800 (PST) From: Sudip Mukherjee To: Tony Prisk , Jean-Christophe Plagniol-Villard , Tomi Valkeinen Cc: Sudip Mukherjee , linux-arm-kernel@lists.infradead.org, linux-fbdev@vger.kernel.org, linux-kernel@vger.kernel.org, Sergei Shtylyov Subject: [PATCH v2] video: vt8500lcdfb: remove unneeded continue Date: Wed, 7 Jan 2015 11:05:48 +0530 Message-Id: <1420608948-4550-1-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 Sender: linux-fbdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-fbdev@vger.kernel.org X-Spam-Status: No, score=-6.8 required=5.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_HI, T_DKIM_INVALID, T_RP_MATCHES_RCVD, 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 continue is not needed at the end of a for loop, also removed the braces which were no longer required. Signed-off-by: Sudip Mukherjee --- v2: removed braces drivers/video/fbdev/vt8500lcdfb.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/drivers/video/fbdev/vt8500lcdfb.c b/drivers/video/fbdev/vt8500lcdfb.c index ffaf29e..1a1176b 100644 --- a/drivers/video/fbdev/vt8500lcdfb.c +++ b/drivers/video/fbdev/vt8500lcdfb.c @@ -113,10 +113,8 @@ static int vt8500lcd_set_par(struct fb_info *info) } for (i = 0; i < 8; i++) { - if (bpp_values[i] == info->var.bits_per_pixel) { + if (bpp_values[i] == info->var.bits_per_pixel) reg_bpp = i; - continue; - } } control0 = readl(fbi->regbase) & ~0xf;