From patchwork Mon Dec 26 20:53:37 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: SF Markus Elfring X-Patchwork-Id: 9488803 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 07CAA60839 for ; Mon, 26 Dec 2016 20:55:14 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id EBAC41FFBD for ; Mon, 26 Dec 2016 20:55:13 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id DFB601FFCA; Mon, 26 Dec 2016 20:55:13 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-6.9 required=2.0 tests=BAYES_00,RCVD_IN_DNSWL_HI autolearn=ham version=3.3.1 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 918681FF8E for ; Mon, 26 Dec 2016 20:55:13 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755882AbcLZUy4 (ORCPT ); Mon, 26 Dec 2016 15:54:56 -0500 Received: from mout.web.de ([212.227.15.14]:63014 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755323AbcLZUyp (ORCPT ); Mon, 26 Dec 2016 15:54:45 -0500 Received: from [192.168.1.2] ([77.182.133.191]) by smtp.web.de (mrweb001 [213.165.67.108]) with ESMTPSA (Nemesis) id 0LjJaZ-1cyGHS2Wbf-00dUQ8; Mon, 26 Dec 2016 21:53:41 +0100 Subject: [PATCH 8/8] [media] videobuf-dma-sg: Add some spaces for better code readability in videobuf_dma_init_user_locked() To: linux-media@vger.kernel.org, Dave Hansen , Jan Kara , Javier Martinez Canillas , "Kirill A. Shutemov" , Lorenzo Stoakes , Mauro Carvalho Chehab , Michal Hocko , Sakari Ailus References: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> Cc: LKML , kernel-janitors@vger.kernel.org From: SF Markus Elfring Message-ID: Date: Mon, 26 Dec 2016 21:53:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.6.0 MIME-Version: 1.0 In-Reply-To: <9268b60d-08ba-c64e-1848-f84679d64f80@users.sourceforge.net> X-Provags-ID: V03:K0:rtKtBZ8i44VBC4VaJqLmcM1SoifAszFlZqYgs7icxOn9i2PCPF6 cpuUP5ilglm64x3VCcMGOPxVh8u/eX945O6G5rOFuYyLsfpfbMNOYhZHQWts6AzcPwGUmtL 8emmeszopvw6lRQAi9bLglbEYL4PgSOh8+Fg5ColhTz/nTY9xTuFwNwMUNsho9ejuTxnzwX fnEzXY4pn/msxdo+aNF6A== X-UI-Out-Filterresults: notjunk:1; V01:K0:Uwkj1KdcSv0=:nnabJa6S44krvz+WWy72Hd 9unVCcCfRn/Za67llFk8h+Ghciu3jkkj7yVU6/f8y+ZNwq4zT2vv97XT2vrQmiAbkvKKrWkz8 CjKJtvclBaywOTW0CPQ76Z1ccxuH8KARVC93Tc2DSJWEMPwNCKxrfW4t11OMkus5Lj/QdjtJm z1yl7yMpHTi24GwSXvk2m5/GLiJGWXR5an7wTjpil3bQeFIIAUZSVLUplgEhPyeNosIbLPwhj eLFSCdueD2YFyGHQV3AT5oYRl5OmKeRi1UEuM8Qld3ue7x3uZqQyFgmyXBeQnneDsU501ccMG 9GcdVD4NZf4jwptgWihqIcKOz2sfTRp05YQ7E+LSfTtGZ8LmtpB4BP+bond1bgSQFAIIccLcL 2yteNOXqfl0EWKklScgekofaM4R6oyzT894DS/lhJ0z2FMDNB2ToDy1DHwsFoTPirdAwtpH8r RD0mDh22Azp5Cl/2yWTGKrM1VB4tBgEaKLQuawu5O3SIGENj2YwXaAgOWpq1XImOpR4QiCN5Z sSUqXK+BooQqgpRhgLKTIY7GgVqtOaSuB8qwPdeuajx5ufgNm6Wf5WDdlx9NUz7Lqp40zFVcs vW2+Q2SFCx6DyGFRtYx9cY5Xg3O+QpfU+UHAM01p/kKSjw5TDmLTHilFBWJeJAESZjiPhzSEM C6716fT4foXONvSA1Le65O8E5ggQxO2YbsQUxQMFxSOb83FQh9RkoK5UhY91Q3BGssyyf3CKk 9YKbRYWDKKd74gCHHnl2USTIOgSq6XqgY9aqg07BuLGSU0oc0DC1Xf7fMjYjr3O4XVTKTwm1G 6PkTrp/ Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Markus Elfring Date: Mon, 26 Dec 2016 21:16:51 +0100 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/media/v4l2-core/videobuf-dma-sg.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/media/v4l2-core/videobuf-dma-sg.c b/drivers/media/v4l2-core/videobuf-dma-sg.c index c8658530da57..9f560373d49d 100644 --- a/drivers/media/v4l2-core/videobuf-dma-sg.c +++ b/drivers/media/v4l2-core/videobuf-dma-sg.c @@ -171,10 +171,10 @@ static int videobuf_dma_init_user_locked(struct videobuf_dmabuf *dma, } first = (data & PAGE_MASK) >> PAGE_SHIFT; - last = ((data+size-1) & PAGE_MASK) >> PAGE_SHIFT; + last = ((data + size - 1) & PAGE_MASK) >> PAGE_SHIFT; dma->offset = data & ~PAGE_MASK; dma->size = size; - dma->nr_pages = last-first+1; + dma->nr_pages = last - first + 1; dma->pages = kmalloc_array(dma->nr_pages, sizeof(*dma->pages), GFP_KERNEL);