]> 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)
commit04cf426e15a932ce18a6869972ac4caa19887118
treec900e38098f5985b64056dad222cc6f1bc80c333
parent2745dec48ea59af6b2c95a4aa8ffa9ee1707f4db
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