summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-03-30 10:02:48 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-03-30 11:08:46 +0200
commitfc951ebcbbff9fc415381072fbac3af406a776ce (patch)
tree357d57ae83cbe032a8fd99409e9dc23ded029f32 /fs
parentc91a0f94237f7a18957422edaf06c8d00a72f838 (diff)
downloadbarebox-fc951ebcbbff9fc415381072fbac3af406a776ce.tar.gz
barebox-fc951ebcbbff9fc415381072fbac3af406a776ce.tar.xz
nfs: remove unnecessary check
In rpc_check_reply() pkt is never NULL, drop the unnecessary patch. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/nfs.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/fs/nfs.c b/fs/nfs.c
index eb316fe295..9956791820 100644
--- a/fs/nfs.c
+++ b/fs/nfs.c
@@ -366,9 +366,6 @@ static int rpc_check_reply(struct packet *pkt, int rpc_prog,
*nfserr = 0;
- if (!pkt)
- return -EAGAIN;
-
memcpy(&rpc, pkt->data, sizeof(rpc));
if (ntoh32(rpc.id) != rpc_id) {