From: Tejun Heo Date: Mon, 5 Mar 2012 21:14:57 +0000 (-0800) Subject: elevator: make elevator_init_fn() return 0/-errno X-Git-Tag: v3.5-rc1~42^2~89 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b2fab5acd28ead6f0dd6c3996ba23f0ef1772f15;p=pandora-kernel.git elevator: make elevator_init_fn() return 0/-errno elevator_ops->elevator_init_fn() has a weird return value. It returns a void * which the caller should assign to q->elevator->elevator_data and %NULL return denotes init failure. Update such that it returns integer 0/-errno and sets elevator_data directly as necessary. This makes the interface more conventional and eases further cleanup. Signed-off-by: Tejun Heo Cc: Vivek Goyal Signed-off-by: Jens Axboe --- Reading git-diff-tree failed