From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by merlin.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1WBsyZ-00004y-OA for barebox@lists.infradead.org; Fri, 07 Feb 2014 21:28:45 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 7 Feb 2014 22:28:06 +0100 Message-Id: <1391808493-27328-4-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1391808493-27328-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1391808493-27328-1-git-send-email-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 v2 04/11] nfs: shorten and simplify rpc_add_credentials a bit To: barebox@lists.infradead.org U2lnbmVkLW9mZi1ieTogVXdlIEtsZWluZS1Lw7ZuaWcgPHUua2xlaW5lLWtvZW5pZ0BwZW5ndXRy b25peC5kZT4KLS0tCiBmcy9uZnMuYyB8IDI2ICsrKysrLS0tLS0tLS0tLS0tLS0tLS0tLS0tCiAx IGZpbGUgY2hhbmdlZCwgNSBpbnNlcnRpb25zKCspLCAyMSBkZWxldGlvbnMoLSkKCmRpZmYgLS1n aXQgYS9mcy9uZnMuYyBiL2ZzL25mcy5jCmluZGV4IDc2ZDhjMDU5NWRiNC4uNTRkZGEyNjFjMGIx IDEwMDY0NAotLS0gYS9mcy9uZnMuYworKysgYi9mcy9uZnMuYwpAQCAtMjI0LDM0ICsyMjQsMTgg QEAgb3V0X292ZXJmbG93OgogICovCiBzdGF0aWMgdWludDMyX3QgKnJwY19hZGRfY3JlZGVudGlh bHModWludDMyX3QgKnApCiB7Ci0JaW50IGhsOwotCWludCBob3N0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