Message ID | 1412051169-9142-2-git-send-email-ankit.jindal@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDBIX6HZ5ECRBQHEVCQQKGQE3C2SVIY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-la0-f72.google.com (mail-la0-f72.google.com [209.85.215.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id C092F202DB for <linaro@patches.linaro.org>; Tue, 30 Sep 2014 04:32:01 +0000 (UTC) Received: by mail-la0-f72.google.com with SMTP id mc6sf6190155lab.11 for <linaro@patches.linaro.org>; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:delivered-to:from:to:cc:subject :date:message-id:in-reply-to:references:sender:precedence:list-id :x-original-sender:x-original-authentication-results:mailing-list :list-post:list-help:list-archive:list-unsubscribe; bh=VjaGZN5AYeR4+DG8kZnbVABy+BchZpVb1F5TMNqZFLo=; b=luFSSfCPwR4a+ilmQGestKPD5tTdQfdAAZQUA5zR+iQZfFr6fRpcdCnHjwatIFXFiF CDI9ZwcaropEaZJv+A2I0S1cZd2Ywy1cFI/pKpS8dnzURv6O935Q5j2tDv9VOREBkrEa 7BBDjCekbYLFhKvME1niwFyZ3TaZgPG5508io/0sRbpVJCU5jfMwIPlJWDB0JXb3dhl8 q9YfzPV15nz0vSrlw9xzNhgkUuNE2gxlcD5o9u0+JBBirMUQMa5noha1eb6kvgMAnha9 KR9C+eyJf3R2sKMo24hczg3hU+lVsXOw7Pl9JedC6m0+eL8+Ct78n4GUHvtnaRWkLjcn y+zA== X-Gm-Message-State: ALoCoQmncVR3dYNOmD8m38vA86SwHDXy3ebOrFkUojG5XvsGAk3XeJN86evLhoI77ZIVB1erqSnC X-Received: by 10.112.184.197 with SMTP id ew5mr6500200lbc.0.1412051520635; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.5.201 with SMTP id u9ls700890lau.107.gmail; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) X-Received: by 10.152.5.100 with SMTP id r4mr21775483lar.41.1412051520468; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) Received: from mail-la0-f48.google.com (mail-la0-f48.google.com [209.85.215.48]) by mx.google.com with ESMTPS id t8si20710021laa.112.2014.09.29.21.32.00 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 21:32:00 -0700 (PDT) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) client-ip=209.85.215.48; Received: by mail-la0-f48.google.com with SMTP id q1so7651434lam.21 for <patchwork-forward@linaro.org>; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) X-Received: by 10.152.204.231 with SMTP id lb7mr43603760lac.44.1412051520349; Mon, 29 Sep 2014 21:32:00 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patch@linaro.org Received: by 10.112.130.169 with SMTP id of9csp283183lbb; Mon, 29 Sep 2014 21:31:59 -0700 (PDT) X-Received: by 10.66.151.196 with SMTP id us4mr63376321pab.78.1412051518843; Mon, 29 Sep 2014 21:31:58 -0700 (PDT) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id wv9si25560036pbc.211.2014.09.29.21.31.58 for <multiple recipients>; Mon, 29 Sep 2014 21:31:58 -0700 (PDT) Received-SPF: none (google.com: linux-kernel-owner@vger.kernel.org does not designate permitted sender hosts) client-ip=209.132.180.67; Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751904AbaI3Eb4 (ORCPT <rfc822;ankit.jindal@linaro.org> + 27 others); Tue, 30 Sep 2014 00:31:56 -0400 Received: from mail-pa0-f41.google.com ([209.85.220.41]:38312 "EHLO mail-pa0-f41.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751508AbaI3Eby (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Tue, 30 Sep 2014 00:31:54 -0400 Received: by mail-pa0-f41.google.com with SMTP id eu11so3422853pac.28 for <linux-kernel@vger.kernel.org>; Mon, 29 Sep 2014 21:31:53 -0700 (PDT) X-Received: by 10.68.175.99 with SMTP id bz3mr67402734pbc.112.1412051513538; Mon, 29 Sep 2014 21:31:53 -0700 (PDT) Received: from pnqlab023.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id qj2sm13761033pbc.78.2014.09.29.21.31.49 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 29 Sep 2014 21:31:52 -0700 (PDT) From: Ankit Jindal <ankit.jindal@linaro.org> To: linux-kernel@vger.kernel.org Cc: "Hans J. Koch" <hjk@hansjkoch.de>, Greg Kroah-Hartman <gregkh@linuxfoundation.org>, patches@apm.com, linux-arm-kernel@lists.infradead.org, Rob Herring <robh+dt@kernel.org>, Tushar Jagad <tushar.jagad@linaro.org>, Russell King - ARM Linux <linux@arm.linux.org.uk>, devicetree@vger.kernel.org, Ankit Jindal <ankit.jindal@linaro.org> Subject: [PATCH v2 1/6] uio: code style cleanup Date: Tue, 30 Sep 2014 09:56:04 +0530 Message-Id: <1412051169-9142-2-git-send-email-ankit.jindal@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1412051169-9142-1-git-send-email-ankit.jindal@linaro.org> References: <1412051169-9142-1-git-send-email-ankit.jindal@linaro.org> Sender: linux-kernel-owner@vger.kernel.org Precedence: list List-ID: <patchwork-forward.linaro.org> X-Mailing-List: linux-kernel@vger.kernel.org X-Removed-Original-Auth: Dkim didn't pass. X-Original-Sender: ankit.jindal@linaro.org X-Original-Authentication-Results: mx.google.com; spf=pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.48 as permitted sender) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org X-Google-Group-Id: 836684582541 List-Post: <http://groups.google.com/a/linaro.org/group/patchwork-forward/post>, <mailto:patchwork-forward@linaro.org> List-Help: <http://support.google.com/a/linaro.org/bin/topic.py?topic=25838>, <mailto:patchwork-forward+help@linaro.org> List-Archive: <http://groups.google.com/a/linaro.org/group/patchwork-forward/> List-Unsubscribe: <mailto:googlegroups-manage+836684582541+unsubscribe@googlegroups.com>, <http://groups.google.com/a/linaro.org/group/patchwork-forward/subscribe> |
diff --git a/drivers/uio/uio.c b/drivers/uio/uio.c index a673e5b..97e6444 100644 --- a/drivers/uio/uio.c +++ b/drivers/uio/uio.c @@ -706,13 +706,13 @@ static int uio_mmap(struct file *filep, struct vm_area_struct *vma) } switch (idev->info->mem[mi].memtype) { - case UIO_MEM_PHYS: - return uio_mmap_physical(vma); - case UIO_MEM_LOGICAL: - case UIO_MEM_VIRTUAL: - return uio_mmap_logical(vma); - default: - return -EINVAL; + case UIO_MEM_PHYS: + return uio_mmap_physical(vma); + case UIO_MEM_LOGICAL: + case UIO_MEM_VIRTUAL: + return uio_mmap_logical(vma); + default: + return -EINVAL; } }