diff options
Diffstat (limited to 'net/sunrpc/sched.c')
-rw-r--r-- | net/sunrpc/sched.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/net/sunrpc/sched.c b/net/sunrpc/sched.c index 93107265256d..5681c6a12d20 100644 --- a/net/sunrpc/sched.c +++ b/net/sunrpc/sched.c | |||
@@ -836,12 +836,6 @@ struct rpc_task *rpc_new_task(const struct rpc_task_setup *setup_data) | |||
836 | } | 836 | } |
837 | 837 | ||
838 | rpc_init_task(task, setup_data); | 838 | rpc_init_task(task, setup_data); |
839 | if (task->tk_status < 0) { | ||
840 | int err = task->tk_status; | ||
841 | rpc_put_task(task); | ||
842 | return ERR_PTR(err); | ||
843 | } | ||
844 | |||
845 | task->tk_flags |= flags; | 839 | task->tk_flags |= flags; |
846 | dprintk("RPC: allocated task %p\n", task); | 840 | dprintk("RPC: allocated task %p\n", task); |
847 | return task; | 841 | return task; |