]> git.baikalelectronics.ru Git - kernel.git/commit
SUNRPC: remove an unnecessary if statement
authorwangweidong <wangweidong1@huawei.com>
Tue, 15 Oct 2013 03:44:30 +0000 (11:44 +0800)
committerTrond Myklebust <Trond.Myklebust@netapp.com>
Mon, 28 Oct 2013 22:16:56 +0000 (18:16 -0400)
commit6b917e62deee25fcfaa5fcb007b32cd081b9f4cc
treec900e38098f5985b64056dad222cc6f1bc80c333
parent8fa9bb108e7ad9f245a5615ed5ef470e6cdb8a09
SUNRPC: remove an unnecessary if statement

If req allocated failed just goto out_free, no need to check the
'i < num_prealloc'. There is just code simplification, no
functional changes.

Signed-off-by: Wang Weidong <wangweidong1@huawei.com>
Signed-off-by: Trond Myklebust <Trond.Myklebust@netapp.com>
net/sunrpc/xprt.c