From patchwork Wed Nov 16 11:15:05 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tomas Melin X-Patchwork-Id: 695534 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 3tJhWd6mDrz9t1Q for ; Wed, 16 Nov 2016 22:15:41 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 190BFA754A; Wed, 16 Nov 2016 12:15:40 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id OxDy_OLPlsI5; Wed, 16 Nov 2016 12:15:39 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 322CF4BF90; Wed, 16 Nov 2016 12:15:39 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7A5DE4BA29 for ; Wed, 16 Nov 2016 12:15:36 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id JZa2Caw7czVw for ; Wed, 16 Nov 2016 12:15:36 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from hel-mailgw-01.vaisala.com (hel-mailgw-01.vaisala.com [193.143.230.17]) by theia.denx.de (Postfix) with ESMTPS id 1A6484BA16 for ; Wed, 16 Nov 2016 12:15:32 +0100 (CET) IronPort-PHdr: =?us-ascii?q?9a23=3A3/x2Fh0HOry+tLbcsmDT+DRfVm0co7zxezQtwd8Z?= =?us-ascii?q?se0VLvad9pjvdHbS+e9qxAeQG96KsLQd0KGP6vCocFdDyK7JiGoFfp1IWk1Nou?= =?us-ascii?q?QttCtkPvS4D1bmJuXhdS0wEZcKflZk+3amLRodQ56mNBXdrXKo8DEdBAj0OxZr?= =?us-ascii?q?KeTpAI7SiNm82/yv95HJbQhFgDSwbalvIBi4ogndq9QajIh/Iast1xXFpWdFdf?= =?us-ascii?q?5Lzm1yP1KTmBj85sa0/JF99ilbpuws+c1dX6jkZqo0VbNXAigoPGAz/83rqALM?= =?us-ascii?q?TRCT6XsGU2UZiQRHDg7Y5xznRJjxsy/6tu1g2CmGOMD9UL45VSi+46ptVRTljj?= =?us-ascii?q?oMOTwk/2HNksF+jLxVrg+vqRJ8xIDZe52ZOOZkc6/BZ94WWXZNU8BMXCJBGIO8?= =?us-ascii?q?aI4PAvIfM+ZfqonyvUAOpga5CwayAOPvyzlIjWLx0K0m1OQhFBvJ3Bc6E9ILrn?= =?us-ascii?q?vUqNT1NKEJXOCr1qbIzC7DYOlS2Tjn8oTHbhchofSVUL92bMHfylEvGhvYgliS?= =?us-ascii?q?t4DpJS2Z2+sXv2SG9eZsS/yjhm4hpgpsuDag3N0shZPMho8Nz1DE8jh2z5gtKN?= =?us-ascii?q?2jTU57fcakEJxNtyGGL4d2Qt0tQ2VvuCsiyLMItpi1cDEXxpog2RDRceaLfJSP?= =?us-ascii?q?4hL5TOadOyl4i2hkeLKknRmy9VKvxvfgWcmz1VZGtitFkt/SuXARzxHf98qKRu?= =?us-ascii?q?Vn8ku/1juDzR3f5vtaLUwqlafXM5shzaQxlpoXv0TDBCj2mEDuga+KcUUk//Kn?= =?us-ascii?q?6//9brXjuJCcM450igflP6QwgMO/AP84PRIKX2eB4+izyLrj/UjhTLVQkvI2ir?= =?us-ascii?q?XZsIzdJckDu661GhRa0oEk6xajFDqm1NUYnWIbLFJeYh6IkpbmO1fBIfziEPiw?= =?us-ascii?q?nQfkrDA+2rXMObr9KpHMNWTY1rvse6Y750MP5hA0yIVj4JddEfkkLfbyXAelqN?= =?us-ascii?q?vdBwR/NgGwwuDPFtx8zYoaUCSEBarPY/CaikOB+u96e7rEX4QSojuoc/U=3D?= X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: =?us-ascii?q?A2G5AQDbPixY/+EBGKxeHAEBBAEBCgEBF?= =?us-ascii?q?wEBBAEBCgEBgwwBAQEBAYF3jT6nKoI4gg6CB4YhglcUAQEBAQEBAQEBAQECgQe?= =?us-ascii?q?CMxiDFoFRvRuLZTGGPIhzfIR3HgWUWoVogXCOeoFYjkcCSZEOHoEihVdwhS6CP?= =?us-ascii?q?AEBAQ?= X-IPAS-Result: =?us-ascii?q?A2G5AQDbPixY/+EBGKxeHAEBBAEBCgEBFwEBBAEBCgEBgww?= =?us-ascii?q?BAQEBAYF3jT6nKoI4gg6CB4YhglcUAQEBAQEBAQEBAQECgQeCMxiDFoFRvRuLZ?= =?us-ascii?q?TGGPIhzfIR3HgWUWoVogXCOeoFYjkcCSZEOHoEihVdwhS6CPAEBAQ?= X-IronPort-AV: E=Sophos;i="5.31,647,1473109200"; d="scan'208";a="33643462" Received: from hel-smtp.corp.vaisala.com ([172.24.1.225]) by hel-mailgw-01.vaisala.com with ESMTP; 16 Nov 2016 13:15:30 +0200 Received: from debian8.corp.vaisala.com ([172.24.65.111]) by HEL-SMTP.corp.vaisala.com over TLS secured channel with Microsoft SMTPSVC(8.5.9600.16384); Wed, 16 Nov 2016 13:15:30 +0200 From: Tomas Melin To: u-boot@lists.denx.de Date: Wed, 16 Nov 2016 13:15:05 +0200 Message-Id: <1479294905-42171-1-git-send-email-tomas.melin@vaisala.com> X-Mailer: git-send-email 2.1.4 X-OriginalArrivalTime: 16 Nov 2016 11:15:30.0888 (UTC) FILETIME=[BDFAF480:01D23FFA] Subject: [U-Boot] [PATCH] spl: remove redundant call to parse_image_header() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" Image header was checked twice. Signed-off-by: Tomas Melin Acked-by: Lokesh Vutla Reviewed-by: Simon Glass --- common/spl/spl_ymodem.c | 1 - 1 file changed, 1 deletion(-) diff --git a/common/spl/spl_ymodem.c b/common/spl/spl_ymodem.c index 13e8e51..957894d 100644 --- a/common/spl/spl_ymodem.c +++ b/common/spl/spl_ymodem.c @@ -109,7 +109,6 @@ static int spl_ymodem_load_image(struct spl_image_info *spl_image, while ((res = xyzModem_stream_read(buf, BUF_SIZE, &err)) > 0) size += res; } else { - spl_parse_image_header(spl_image, (struct image_header *)buf); ret = spl_parse_image_header(spl_image, (struct image_header *)buf); if (ret)