From patchwork Fri Apr 29 06:26:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Manav Batra X-Patchwork-Id: 8977621 Return-Path: X-Original-To: patchwork-linux-fbdev@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id BDFF29F46D for ; Fri, 29 Apr 2016 06:27:01 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id E43BE201FA for ; Fri, 29 Apr 2016 06:27:00 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 06709201EC for ; Fri, 29 Apr 2016 06:27:00 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752797AbcD2G0p (ORCPT ); Fri, 29 Apr 2016 02:26:45 -0400 Received: from mail-pa0-f67.google.com ([209.85.220.67]:34580 "EHLO mail-pa0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752668AbcD2G0o (ORCPT ); Fri, 29 Apr 2016 02:26:44 -0400 Received: by mail-pa0-f67.google.com with SMTP id yl2so11322390pac.1; Thu, 28 Apr 2016 23:26:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=date:from:to:subject:message-id:mime-version:content-disposition :user-agent; bh=OC05KPrtbi60IgLN3jplfooIO8ZaPLyOMcBKAjvrscI=; b=E9HicIz1ZwifzHtx4nLWGE4EpslyGN+ILO6Ec01t0nFgVcoeyctp36knDQA7Aml/Gt hgLIlN+c7hj9LsRHAf+Q/krKUMdlEgcgP+FA1x6JnqTSyD3DZRkeDJ4UaCyWQSb/Uxnm UvPYILgnbIonOcfO81+PXbDbhdcV2OmS10cMwXQKGLZC6xOhMRUHXBGsrIyoUw7m3KMj yPsMNZ8CUlTVKFvENS6bWYCgJ91YR27c1GPwXUEaveTsxuHv+a1kvoNwnI+hvT0oYiax XbGWPkMCacmEpXB0Zs+V8mIrxitAApbQKAw9VASiCK8lpczbXeE6JaAC5bh8/R0OADgq WoJQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:date:from:to:subject:message-id:mime-version :content-disposition:user-agent; bh=OC05KPrtbi60IgLN3jplfooIO8ZaPLyOMcBKAjvrscI=; b=QBPSNb5ykSKIyiXTEHD+OBderi8rxSPbiMMyeGBveL43ERaRJsJBtn86nIsgvfDATX BzGqnUr6OFlakWYKCl2NfwitKGxT2wrzR/waMfaDi5lBfXg829Qivd+pVu4tqDlva5cM tTynThx0MS+ODA4qOU9UZ45Z3vD7/ItCGniUrrXgbHUget1Y2bBxq9JsmVja8EZ6oUsJ MXIAE9qrepVfLzm4kWGbMGRKz7cN/3aebVNgMvVWvVcTLrYdQLqG0QdzymI4FZrwKQ/F E0iv62OUaNHYbKg5UVjXYUThjWk0SZCKK6QVr6OEMK2mKDbBG6vc2ofTiaWyvC3F1JDm uMtg== X-Gm-Message-State: AOPr4FWV5Ze6WjtAnhZwvN+Jy7eK4AK370KPCfzFwW+kC5Ni9dy3fILF4IC5rlBPvfmljg== X-Received: by 10.66.65.235 with SMTP id a11mr26498374pat.155.1461911203184; Thu, 28 Apr 2016 23:26:43 -0700 (PDT) Received: from ubuntu ([182.77.54.185]) by smtp.gmail.com with ESMTPSA id ey12sm20264243pac.26.2016.04.28.23.26.41 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Thu, 28 Apr 2016 23:26:42 -0700 (PDT) Date: Thu, 28 Apr 2016 23:26:52 -0700 From: Manav Batra To: gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH] staging: sm750fb: Braces {} on all arms Message-ID: <20160429062652.GA4718@iiitd.ac.in> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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.8 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 Signed-off-by: Manav Batra Applied braces on all arms of the statement. --- drivers/staging/sm750fb/ddk750_chip.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/drivers/staging/sm750fb/ddk750_chip.c b/drivers/staging/sm750fb/ddk750_chip.c index f80ee77..7748862 100644 --- a/drivers/staging/sm750fb/ddk750_chip.c +++ b/drivers/staging/sm750fb/ddk750_chip.c @@ -19,15 +19,16 @@ logical_chip_type_t getChipType(void) physicalID = devId750; /* either 0x718 or 0x750 */ physicalRev = revId750; - if (physicalID == 0x718) + if (physicalID == 0x718) { chip = SM718; - else if (physicalID == 0x750) { + } else if (physicalID == 0x750) { chip = SM750; /* SM750 and SM750LE are different in their revision ID only. */ if (physicalRev == SM750LE_REVISION_ID) chip = SM750LE; - } else + } else { chip = SM_UNKNOWN; + } return chip; }