Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753349AbeAFMrQ (ORCPT + 1 other); Sat, 6 Jan 2018 07:47:16 -0500 Received: from mout.web.de ([212.227.15.14]:51297 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753092AbeAFMrO (ORCPT ); Sat, 6 Jan 2018 07:47:14 -0500 Subject: [PATCH 2/3] mtd/nftlmount: Delete eight unwanted spaces behind function names 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: <0095db26-a0ff-a400-3509-6085d701ecab@users.sourceforge.net> Date: Sat, 6 Jan 2018 13:46:39 +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: 8bit X-Provags-ID: V03:K0:N6YA0AAd8v0TPdgzCRxgpXERU0R7jbncu06EvbuJf6gNu1sXjOH WSlzL4CHOAqbXsNBqsHx8JwQpTbPZH+L/hfVwrh03qKSYIqReODkUf8bQWMBnoe2LtvsNpY HjAfmqtNt7EaOqXR56hnS5HTyn+HZXWhuTOwMYVk29JJgvNUXctlZiX0X1NSZ2s34MMwym2 pEzDeaRq13drDD7L0AY6w== X-UI-Out-Filterresults: notjunk:1;V01:K0:GAmhp5ZWYEQ=:l9dqoFw/nKkiOkOebgv34j Fez2fdkRg4Hwdf0KgpmFC5E2sK86q8Q1mL26dXcybYgjCcSBNd+PLeAqnEO0KYiC1ZRa03/bb p3/4jWFlX95lGxJz3vQRf+Tm31kseiaaGOUhAswTLWfz6xNI/yqLXDZghoUiUvnclkGGLWS4q JX8CCN0ujuf2p7zDqq5uPyWYCwFisYAGHOmscfPVJI8Y3dlpY664UTnHu0v8a5OfwUGIoBXa8 KfclBgkx9JLWaheCoL1DkORC2EbUtC/yuma9+JPaYXcPyYRPdUtKp5pbYpMazUJz7jNedc8Cr MmW9SKtpmWQzLOj8xHTY2y1JorWOTmdPYqp+4xQBg8Uco8ZNWUDAjR1BZz1UbKnAI5H6nZPz8 J4dOR9AMsPaQZ4kyQxls7omkH9FFi8VZjfUWyj6PfKqekzDUhZhsG4d1syD7SbjfDxI8UKAF6 mcqq33B5CfI8bTHsAfnkxIKD+m0X1nNN/evoZ94ZE+rovHwhhDacRBbr7CzDVtT+QuVqSMfxu HkXvpQNQjWFU4ukBniLiDteTLN1vxzIJRsiydo2+pvPA58mkYCRiogKeOydUXUOSk7oswNJgb 1mai0U0L6jwgJXRsaCg8JU3VQEbMeHpf+fh6fmO7ZX/wX4XnzogAtShWFhPuNc6WKIxNUWo+r yjTC5UPZWYe9gDRz8BfZdn5wta6h1N9vRzYOKW9YyZ3l98BqCoL0b1i68mYkNishxt95OJGvt ZRatVPRgwsGmNyQMveI55gR7a4kmaV6biYZvDBwm2TpzOwM1mKBT0xLkhLNFKxpavmg+H6/Hv mefZ+3cbAq4J5d0360t4ZzUBukr6De0jquq8LCeoXD6VdKeQT8= 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:55:23 +0100 The script "checkpatch.pl" pointed information out like the following. WARNING: space prohibited between function name and open parenthesis '(' Thus fix the affected source code places. Signed-off-by: Markus Elfring --- drivers/mtd/nftlmount.c | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/drivers/mtd/nftlmount.c b/drivers/mtd/nftlmount.c index 6b9634a70229..d1eaa87c88ba 100644 --- a/drivers/mtd/nftlmount.c +++ b/drivers/mtd/nftlmount.c @@ -314,7 +314,7 @@ int NFTL_formatblock(struct NFTLrecord *nftl, int block) 8, &retlen, (char *)&uci) < 0) goto default_uci1; - erase_mark = le16_to_cpu ((uci.EraseMark | uci.EraseMark1)); + erase_mark = le16_to_cpu(uci.EraseMark | uci.EraseMark1); if (erase_mark != ERASE_MARK) { default_uci1: uci.EraseMark = cpu_to_le16(ERASE_MARK); @@ -501,11 +501,12 @@ static int check_and_mark_free_block(struct NFTLrecord *nftl, int block) &retlen, (char *)&h1) < 0) return -1; - erase_mark = le16_to_cpu ((h1.EraseMark | h1.EraseMark1)); + erase_mark = le16_to_cpu(h1.EraseMark | h1.EraseMark1); if (erase_mark != ERASE_MARK) { /* if no erase mark, the block must be totally free. This is possible in two cases : empty filesystem or interrupted erase (very unlikely) */ - if (check_free_sectors (nftl, block * nftl->EraseSize, nftl->EraseSize, 1) != 0) + if (check_free_sectors(nftl, block * nftl->EraseSize, + nftl->EraseSize, 1) != 0) return -1; /* free block : write erase mark */ @@ -521,8 +522,9 @@ static int check_and_mark_free_block(struct NFTLrecord *nftl, int block) /* if erase mark present, need to skip it when doing check */ for (i = 0; i < nftl->EraseSize; i += SECTORSIZE) { /* check free sector */ - if (check_free_sectors (nftl, block * nftl->EraseSize + i, - SECTORSIZE, 0) != 0) + if (check_free_sectors(nftl, + block * nftl->EraseSize + i, + SECTORSIZE, 0) != 0) return -1; if (nftl_read_oob(mtd, block * nftl->EraseSize + i, @@ -608,10 +610,13 @@ int NFTL_mount(struct NFTLrecord *s) break; } - logical_block = le16_to_cpu ((h0.VirtUnitNum | h0.SpareVirtUnitNum)); - rep_block = le16_to_cpu ((h0.ReplUnitNum | h0.SpareReplUnitNum)); - nb_erases = le32_to_cpu (h1.WearInfo); - erase_mark = le16_to_cpu ((h1.EraseMark | h1.EraseMark1)); + logical_block = le16_to_cpu(h0.VirtUnitNum | + h0.SpareVirtUnitNum); + rep_block = le16_to_cpu(h0.ReplUnitNum | + h0.SpareReplUnitNum); + nb_erases = le32_to_cpu(h1.WearInfo); + erase_mark = le16_to_cpu(h1.EraseMark | + h1.EraseMark1); is_first_block = !(logical_block >> 15); logical_block = logical_block & 0x7fff; -- 2.15.1