From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cjTB1-0007iw-RQ for barebox@lists.infradead.org; Thu, 02 Mar 2017 16:02:01 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 2 Mar 2017 17:01:36 +0100 Message-Id: <20170302160136.20616-1-u.kleine-koenig@pengutronix.de> MIME-Version: 1.0 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH] tftp: trivial code simplification To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRy b25peC5kZT4KLS0tCiBmcy90ZnRwLmMgfCAxMCArKysrLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwg NCBpbnNlcnRpb25zKCspLCA2IGRlbGV0aW9ucygtKQoKZGlmZiAtLWdpdCBhL2ZzL3RmdHAuYyBi L2ZzL3RmdHAuYwppbmRleCAyNzJhNzEwNmViNTEuLmJjMzU4MDI4OTI4NiAxMDA2NDQKLS0tIGEv ZnMvdGZ0cC5jCisrKyBiL2ZzL3RmdHAuYwpAQCAtNTY4LDEzICs1NjgsMTEgQEAgc3RhdGljIGlu dCB0ZnRwX3JlYWQoc3RydWN0IGRldmljZV9kICpkZXYsIEZJTEUgKmYsIHZvaWQgKmJ1Ziwgc2l6 ZV90IGluc2l6ZSkKIAogCXdoaWxlIChpbnNpemUpIHsKIAkJbm93ID0ga2ZpZm9fZ2V0KHByaXYt PmZpZm8sIGJ1ZiwgaW5zaXplKTsKKwkJb3V0c2l6ZSArPSBub3c7CisJCWJ1ZiAr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