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 1dwQE8-000163-MC for barebox@lists.infradead.org; Mon, 25 Sep 2017 10:03:04 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Mon, 25 Sep 2017 12:02:35 +0200 Message-Id: <20170925100235.17848-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] remove checks for xzalloc() returning NULL To: barebox@lists.infradead.org eHphbGxvYygpIGVpdGhlciByZXR1cm5zIG1lbW9yeSBvciBwYW5pY3MsIHNvIGNoZWNraW5nIGZv ciBOVUxMIGlzIHVzZWxlc3MuCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5r bGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgotLS0KIGNvbW1vbi9zdGF0ZS9iYWNrZW5kX2J1 Y2tldF9jaXJjdWxhci5jIHwgMiAtLQogY29tbW9uL3N0YXRlL2JhY2tlbmRfZm9ybWF0X2R0Yi5j ICAgICAgfCAyIC0tCiBjb21tb24vc3RhdGUvYmFja2VuZF9mb3JtYXRfcmF3LmMgICAgICB8IDQg LS0tLQogZHJpdmVycy9jbGsvbXhzL2Nsay1kaXYuYyAgICAgICAgICAgICAgfCAyIC0tCiBkcml2 ZXJzL2Nsay9teHMvY2xrLXBsbC5jICAgICAgICAgICAgICB8IDIgLS0KIGRyaXZlcnMvY2xrL214 cy9jbGstcmVmLmMgICAgICAgICAgICAgIHwgMiAtLQogZHJpdmVycy9ncGlvL2dwaW8tY2xwczcx MXguYyAgICAg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