Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753373AbeAFMsN (ORCPT + 1 other); Sat, 6 Jan 2018 07:48:13 -0500 Received: from mout.web.de ([212.227.15.14]:62068 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753041AbeAFMsL (ORCPT ); Sat, 6 Jan 2018 07:48:11 -0500 Subject: [PATCH 3/3] mtd/nftlmount: Add some spaces for better code readability From: SF Markus Elfring To: linux-mtd@lists.infradead.org, Boris Brezillon , Brian Norris , Cyrille Pitchen , David Woodhouse , Marek Vasut , Richard Weinberger Cc: LKML , kernel-janitors@vger.kernel.org References: <57d4cbcf-c99c-f3d5-e2bf-f67873f321ea@users.sourceforge.net> Message-ID: Date: Sat, 6 Jan 2018 13:47:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <57d4cbcf-c99c-f3d5-e2bf-f67873f321ea@users.sourceforge.net> Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:BOhmalOy5gsqxI3pghdzvzt8M1UV03u0Sdqm5/5T7DFKgDbYb7x +ENECW1reGFkCpaE2ojFLgxH7OXTY4lHUDBUKJ0LYhGwsaOQa1w4mDrzHDhlM3nKM1Qfjwp aeM75qarVEcnKG/nrUMVEX+cQU7FWzGHNw3sfngUCpSPwarlRqTd7cRJi/IEn3cCYc54ZCX LJbtLx45kvtAWTvXjozfg== X-UI-Out-Filterresults: notjunk:1;V01:K0:g11BWUcxEzM=:d9aln261Li1ofbARDP7hJ5 4LKfI/lci12yeRgfFMJ2sHaHPQtoP9Ki4PSWrORF7jJrclxWvJqDP2++mTFNjlY32/IvVbfO1 QCEa3wB+3Ngj3tcDrJufXTXqiHviuax17JhP5vUpewc1tH6OvkM44MYDY6RES8QV+p1AHDQcQ u4o91bwJFS197vIvP2a7wvS/Hszg7zetyfZt56WuXmATMlRnl+nTCYMx7yxVaiNm37Pgt0TsG JrrkL1913xoGrOKmySuLUn058tOHWi1zqx7TyD1TKAW4tB6Ljm9Wct/ssfZdimZvqGz5wFiwP YWU2sTlCYiLK319WKQGymqAtW7iVWoHsC4QSZ0hSTLPX+YQ1+NE9+smcmVchTcKk41looHQiu ibH5c5iMi8OFFo8A2caMj3NGbUGRaFvvO9ecqYGlV857pRajFPHckK0IcVD9yDKaviT7hfQU+ xtaQDsUoSmTslAfUG/Oz+WTAf4C3VAqzl6kZ/BTYlF76+ijTnZWGbTiT9ao+UldI++B5bl2f7 Exco9aw5d1qt/Ml9C9XBNCZFqtsy85cDW3ikyPCrdii1MkSBxbM8wboElIZhB+1RGBir5TA+y sKnPiWaKxeQtVSLgz40dWGAnr8BBkvRI84hHosPNZR9VNTddp5mjC/2p9amv0fsohJ/5ftFfp F6JU3pRo/iYF2ngi3P1oXR8A7BDaUs73+PZipYnbiwsMAWgIf+8NUO/eaZD6meeV5Gw2zTs7a CTuXCONdJSTFSnI196pc7lP5/R8PXl/wSLDSlmLgoKQ7inIReEJ/RImXu5AjIjunEjDtNA0Lg Icau3bBtsfl3Js9unEw3DhigptBUVbKfdOW/3jMjW15do2/MVE= Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Return-Path: From: Markus Elfring Date: Sat, 6 Jan 2018 12:58:37 +0100 Use space characters at some source code places according to the Linux coding style convention. Signed-off-by: Markus Elfring --- drivers/mtd/nftlmount.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/mtd/nftlmount.c b/drivers/mtd/nftlmount.c index d1eaa87c88ba..457f3572c582 100644 --- a/drivers/mtd/nftlmount.c +++ b/drivers/mtd/nftlmount.c @@ -253,7 +253,7 @@ The new DiskOnChip driver already scanned the bad block table. Just query it. } /* foreach (block) */ - return boot_record_count?0:-1; + return boot_record_count ? 0 : -1; } static int memcmpb(void *a, int c, int n) @@ -282,8 +282,8 @@ static int check_free_sectors(struct NFTLrecord *nftl, unsigned int address, int return -1; if (check_oob) { - if(nftl_read_oob(mtd, address, mtd->oobsize, - &retlen, &buf[SECTORSIZE]) < 0) + if (nftl_read_oob(mtd, address, mtd->oobsize, + &retlen, &buf[SECTORSIZE]) < 0) return -1; if (memcmpb(buf + SECTORSIZE, 0xff, mtd->oobsize) != 0) return -1; @@ -389,7 +389,7 @@ static void check_sectors_in_chain(struct NFTLrecord *nftl, unsigned int first_b else status = bci.Status | bci.Status1; - switch(status) { + switch (status) { case SECTOR_FREE: /* verify that the sector is really free. If not, mark as ignore */ -- 2.15.1