Message ID | 1415864722-2800-2-git-send-email-ankit.jindal@linaro.org |
---|---|
State | New |
Headers | show
Return-Path: <patchwork-forward+bncBDBIX6HZ5ECRBEOESGRQKGQEJM535JY@linaro.org> X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-ee0-f70.google.com (mail-ee0-f70.google.com [74.125.83.70]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 1349C240ED for <linaro@patches.linaro.org>; Thu, 13 Nov 2014 07:47:30 +0000 (UTC) Received: by mail-ee0-f70.google.com with SMTP id b57sf9053346eek.1 for <linaro@patches.linaro.org>; Wed, 12 Nov 2014 23:47:29 -0800 (PST) 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=DZcSs6LoNzHxhTmIKGj9qHhvtGkqokDrg46rtitiAKdyA758i5fCichFJIItOcT3+v Dxo3wFy1c0agrzaokMoasjeE6cVJteFw/2AzK/2DAd2bNijRqyXIBEYp80wNnhZ0dFw1 tAuhwhFe4ZIh9eQYD64MpDtCRFpy/c2R86UUW4GW4ew3HgJIqQEu4f4UQvy7RotFJA+L sJdwEvid5b4em5r4XJPyIWfLjGobmuEe3G4CzCnvuASP+Uf99DukPtyD9OCMbKNmgX9H /YIUbXJEiQzbyfa+pu3etBh6e65+RZyQLqFY8Utnvvshkl+craO6Dmvczqpmh/w48SfU fWQw== X-Gm-Message-State: ALoCoQmFrzTiGp6G3682GCpImPRW4vp0WZziRMg+CqWCluHbixA7iPOLmXtCFuEZ8/f2PDO5WLjZ X-Received: by 10.181.27.135 with SMTP id jg7mr7618501wid.5.1415864849344; Wed, 12 Nov 2014 23:47:29 -0800 (PST) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.152.42.197 with SMTP id q5ls849630lal.39.gmail; Wed, 12 Nov 2014 23:47:28 -0800 (PST) X-Received: by 10.112.56.134 with SMTP id a6mr741438lbq.25.1415864848707; Wed, 12 Nov 2014 23:47:28 -0800 (PST) Received: from mail-la0-f41.google.com (mail-la0-f41.google.com. [209.85.215.41]) by mx.google.com with ESMTPS id lt11si16503578lac.40.2014.11.12.23.47.28 for <patchwork-forward@linaro.org> (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Nov 2014 23:47:28 -0800 (PST) Received-SPF: pass (google.com: domain of patch+caf_=patchwork-forward=linaro.org@linaro.org designates 209.85.215.41 as permitted sender) client-ip=209.85.215.41; Received: by mail-la0-f41.google.com with SMTP id gf13so772393lab.14 for <patchwork-forward@linaro.org>; Wed, 12 Nov 2014 23:47:28 -0800 (PST) X-Received: by 10.112.52.37 with SMTP id q5mr798348lbo.32.1415864848380; Wed, 12 Nov 2014 23:47:28 -0800 (PST) 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.184.201 with SMTP id ew9csp551184lbc; Wed, 12 Nov 2014 23:47:27 -0800 (PST) X-Received: by 10.68.69.6 with SMTP id a6mr185569pbu.163.1415864846522; Wed, 12 Nov 2014 23:47:26 -0800 (PST) Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id ha3si24779438pbc.225.2014.11.12.23.47.25 for <multiple recipients>; Wed, 12 Nov 2014 23:47:26 -0800 (PST) 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 S932090AbaKMHrJ (ORCPT <rfc822;hongbo.zhang@linaro.org> + 25 others); Thu, 13 Nov 2014 02:47:09 -0500 Received: from mail-pd0-f174.google.com ([209.85.192.174]:53039 "EHLO mail-pd0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753838AbaKMHrE (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Thu, 13 Nov 2014 02:47:04 -0500 Received: by mail-pd0-f174.google.com with SMTP id p10so13902709pdj.19 for <linux-kernel@vger.kernel.org>; Wed, 12 Nov 2014 23:47:03 -0800 (PST) X-Received: by 10.70.89.101 with SMTP id bn5mr890645pdb.134.1415864823936; Wed, 12 Nov 2014 23:47:03 -0800 (PST) Received: from pnqlab023.amcc.com ([182.73.239.130]) by mx.google.com with ESMTPSA id ev8sm24087271pdb.28.2014.11.12.23.46.59 for <multiple recipients> (version=TLSv1.1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 12 Nov 2014 23:47:03 -0800 (PST) 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, Guenter Roeck <linux@roeck-us.net>, Varka Bhadram <varkabhadram@gmail.com>, Kumar Gala <galak@codeaurora.org>, Ankit Jindal <ankit.jindal@linaro.org> Subject: [PATCH v4 1/6] uio: code style cleanup Date: Thu, 13 Nov 2014 13:15:17 +0530 Message-Id: <1415864722-2800-2-git-send-email-ankit.jindal@linaro.org> X-Mailer: git-send-email 1.7.9.5 In-Reply-To: <1415864722-2800-1-git-send-email-ankit.jindal@linaro.org> References: <1415864722-2800-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.41 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; } }