From 902daae1c706e493b5c433dc729c6fd581613c91 Mon Sep 17 00:00:00 2001 From: Jeremy Allison Date: Mon, 4 Jun 2007 23:31:34 +0000 Subject: r23347: Fix Coverity 363. Dead code elimination. Jeremy. (This used to be commit 4524ee2dbcd5c1c66085032de67c6d083f91cb8a) --- source3/libsmb/clifile.c | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) (limited to 'source3/libsmb') diff --git a/source3/libsmb/clifile.c b/source3/libsmb/clifile.c index 61c4347b5b..64b3e652cf 100644 --- a/source3/libsmb/clifile.c +++ b/source3/libsmb/clifile.c @@ -1692,13 +1692,9 @@ static BOOL cli_get_ea_list(struct cli_state *cli, goto out; } - if (num_eas) { - ea_list = TALLOC_ARRAY(ctx, struct ea_struct, num_eas); - if (!ea_list) { - goto out; - } - } else { - ea_list = NULL; + ea_list = TALLOC_ARRAY(ctx, struct ea_struct, num_eas); + if (!ea_list) { + goto out; } ea_size = (size_t)IVAL(rdata,0); -- cgit