From patchwork Mon Jan 19 08:11:04 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sudip Mukherjee X-Patchwork-Id: 5655441 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 5F8EDC058D for ; Mon, 19 Jan 2015 08:12:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 6B2AB20131 for ; Mon, 19 Jan 2015 08:12:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 9763E20120 for ; Mon, 19 Jan 2015 08:12:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751972AbbASILf (ORCPT ); Mon, 19 Jan 2015 03:11:35 -0500 Received: from mail-pd0-f181.google.com ([209.85.192.181]:38364 "EHLO mail-pd0-f181.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751479AbbASILe (ORCPT ); Mon, 19 Jan 2015 03:11:34 -0500 Received: by mail-pd0-f181.google.com with SMTP id g10so2150570pdj.12; Mon, 19 Jan 2015 00:11:33 -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:in-reply-to:references; bh=q0v3O7clhsIcpQn2UkVgEVLFHA75mqjiQO8EVlyxJjM=; b=tX5TemUaVEQiJzXv9FnRjkWqLG6q3ZcVHY5+VzhbHYwMtkB5ZSGAwi0Zh3/BKo5N3c F8Kv+ZR+830+MjcRAGRayrNr0mh5za/e0Df7sOnukZg30/9c1TwHQEd7ZAMeS+wqQ4hw 6D40P8158JPR/hTz3k48y+SAQP/UrmrgnTzad2Cvky2Ysxcealg6H27Lv1k3LKAdPXPq A+e3rPywdzEvkeJlpjTd6RJREUlJkyR2RpQ8rT/B3tgv1jBXSgRiGE/xrxg/u8mE7Otg FKdztORgUW4fph4whIX1pPWrXY8LdWRaSGTpjmGr1e/sWR9S6tenvIwY8F9wmNESylwi TvPQ== X-Received: by 10.70.92.200 with SMTP id co8mr41551964pdb.101.1421655093665; Mon, 19 Jan 2015 00:11:33 -0800 (PST) Received: from localhost.localdomain ([122.169.178.33]) by mx.google.com with ESMTPSA id l4sm10897280pdj.47.2015.01.19.00.11.30 (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 19 Jan 2015 00:11:33 -0800 (PST) From: Sudip Mukherjee To: Greg Kroah-Hartman Cc: Sudip Mukherjee , Teddy Wang , linux-kernel@vger.kernel.org, devel@driverdev.osuosl.org, linux-fbdev@vger.kernel.org Subject: [PATCH v2 5/7] staging: sm7xxfb: no space is necessary after a cast Date: Mon, 19 Jan 2015 13:41:04 +0530 Message-Id: <1421655067-7490-5-git-send-email-sudipm.mukherjee@gmail.com> X-Mailer: git-send-email 1.8.1.2 In-Reply-To: <1421655067-7490-1-git-send-email-sudipm.mukherjee@gmail.com> References: <1421655067-7490-1-git-send-email-sudipm.mukherjee@gmail.com> 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 checkpatch cleanup: space is not necessary after cast Signed-off-by: Sudip Mukherjee --- drivers/staging/sm7xxfb/sm7xxfb.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/sm7xxfb/sm7xxfb.c b/drivers/staging/sm7xxfb/sm7xxfb.c index 6bce9f1..6f0469a 100644 --- a/drivers/staging/sm7xxfb/sm7xxfb.c +++ b/drivers/staging/sm7xxfb/sm7xxfb.c @@ -352,8 +352,8 @@ static ssize_t smtcfb_read(struct fb_info *info, char __user *buf, size_t dst++; } if (c & 3) { - u8 *dst8 = (u8 *) dst; - u8 __iomem *src8 = (u8 __iomem *) src; + u8 *dst8 = (u8 *)dst; + u8 __iomem *src8 = (u8 __iomem *)src; for (i = c & 3; i--;) { if (i & 1) { @@ -363,7 +363,7 @@ static ssize_t smtcfb_read(struct fb_info *info, char __user *buf, size_t src8 += 2; } } - src = (u32 __iomem *) src8; + src = (u32 __iomem *)src8; } if (copy_to_user(buf, buffer, c)) { @@ -442,8 +442,8 @@ smtcfb_write(struct fb_info *info, const char __user *buf, size_t count, src++; } if (c & 3) { - u8 *src8 = (u8 *) src; - u8 __iomem *dst8 = (u8 __iomem *) dst; + u8 *src8 = (u8 *)src; + u8 __iomem *dst8 = (u8 __iomem *)dst; for (i = c & 3; i--;) { if (i & 1) { @@ -453,7 +453,7 @@ smtcfb_write(struct fb_info *info, const char __user *buf, size_t count, dst8 += 2; } } - dst = (u32 __iomem *) dst8; + dst = (u32 __iomem *)dst8; } *ppos += c;