Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753635AbeAFPHT (ORCPT + 1 other); Sat, 6 Jan 2018 10:07:19 -0500 Received: from mout.web.de ([212.227.15.4]:61745 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753359AbeAFPHR (ORCPT ); Sat, 6 Jan 2018 10:07:17 -0500 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 From: SF Markus Elfring Subject: [PATCH 0/5] mtd/rfd_ftl: Adjustments for some function implementations Message-ID: Date: Sat, 6 Jan 2018 16:06:37 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 7bit X-Provags-ID: V03:K0:b7hd5I901LcdPg/183YO0SZB865bFeOOi9FxCpyDlO0jHlXv0ml JoW5kVgB/Ijt+SpCzr2aFdjQQci2fim/UxDssMi6Odo/IFGfzhaSnWmD/7I1JdB+etjXxYe aECOnvFRrtz6yGlUqP74BW7OZEUZKWDBRXmziSCbsC0d8XGmGRh6GGe1LXuEBRj81T0NXyQ e0n4hFFOmXwsH7RqBI4Lw== X-UI-Out-Filterresults: notjunk:1;V01:K0:oCXJ54HW0Qo=:tMDtS2uULlg1nYc8mbyvqN bRSihDRM41jJGRqRkBAj+wEWeofTaHGrCq5UF2v+Ma6tCFWlaWXe3adTyVtkf3AACfDc6ChcA lGPbeqx+v0ve1/bNXjsZZBDTsNRB1unrQZACuO16xPI0yC1bdTBN6bEs5QZtCWgj+7QRqtpWX ++AK7Cwji9iMGxlHDS80pvGWyFzhfzFdXf9ydYuWoGf/lkC1wJe6hjPL4PQns4Sc1QZBtimpH q7wYCeepZr7IjUxGT09VDSo/KWtRt7sjsR8WckIL9iUJmuTFqCyVlrLjChPJSmK5uPKXTePES Vw4f6EiiqQEVBSnVFvk8EI+TWmCXXSm1zfOEk73R0bFGBu1lstrf+JUZ32zUBKauQ3F/dJuZX Y47WogErk262CxTL336zqB4SKwG11LVj5tUhSrks1ej2nFpcJ9p/f92Mve7329Wu/ur3xMhTa /ILQe1VhtYpnH2ztg3K6ksxFO7O8swvJdAIrs9IP8LwNcnRKW90SKGddbIvPnBw3TFMHVniWS syLl/b0t62noU+GJfgqvSRbTGCKpdR264RfYOgBGmBJ/PD+bs4t6yBDfYL+ihFArrjeEi+TlP W9MTjEuHN5smoaXMTCsdaG0Z5bjEvKVdssPcX2FNS7ABRT8dxYye9+IsEogRKoNbyO2nCLgvU j2+QHnnB7qZlHwuwQawRdZaOLA7c4AsX8/D2sCDAyec+86gySUSwwIwY1mg+gDZu0ieLzoab5 rFDXMJwrC19BqU5jRFFbh+6+SrNgeG7nMU3W3+e58BfpLZMdLrsF/QnARth0Y+8ebRapuyjXf StxHCFz3tyo2IbISMbtkZIqyQmWFzgx1jIhOSwzV+F+ZEUv5BY= 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 16:00:01 +0100 A few update suggestions were taken into account from static source code analysis. Markus Elfring (5): Delete an error message for a failed memory allocation in scan_header() Less function calls in scan_header() after error detection Improve a size determination in two functions Return directly after a failed kmalloc() in erase_block() Add some spaces for better code readability drivers/mtd/rfd_ftl.c | 45 +++++++++++++++++++-------------------------- 1 file changed, 19 insertions(+), 26 deletions(-) -- 2.15.1