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 1WBS17-0004gW-6X for barebox@lists.infradead.org; Thu, 06 Feb 2014 16:41:37 +0000 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Thu, 6 Feb 2014 17:40:49 +0100 Message-Id: <1391704854-3141-5-git-send-email-u.kleine-koenig@pengutronix.de> In-Reply-To: <1391704854-3141-1-git-send-email-u.kleine-koenig@pengutronix.de> References: <1391704854-3141-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 4/9] nfs: simplify rpc_lookup_req To: barebox@lists.infradead.org SW5zdGVhZCBvZiBsZXR0aW5nIHJwY19sb29rdXBfcmVxIHNldCBtb3VudF9wb3J0IGFuZCBuZnNf cG9ydCwgbGV0IGl0CnJldHVybiB0aGUgcG9ydCBmb3VuZCBhbmQgbGV0IHRoZSBjYWxsZXIgdXNl IHRoYXQgaW5mb3JtYXRpb24uCgpTaWduZWQtb2ZmLWJ5OiBVd2UgS2xlaW5lLUvDtm5pZyA8dS5r bGVpbmUta29lbmlnQHBlbmd1dHJvbml4LmRlPgotLS0KIGZzL25mcy5jIHwgMjQgKysrKysrLS0t LS0tLS0tLS0tLS0tLS0tCiAxIGZpbGUgY2hhbmdlZCwgNiBpbnNlcnRpb25zKCspLCAxOCBkZWxl dGlvbnMoLSkKCmRpZmYgLS1naXQgYS9mcy9uZnMuYyBiL2ZzL25mcy5jCmluZGV4IGE2YTQ3ZjIy OTM0Yy4uZjE2NDNmZWViYmY5IDEwMDY0NAotLS0gYS9mcy9uZn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