From: Cesar Eduardo Barros Date: Tue, 22 Mar 2011 23:33:23 +0000 (-0700) Subject: sys_swapon: remove bdev variable X-Git-Tag: v2.6.39-rc1~304 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f2090d2df51d7cdb2f952dcfdcd8baaac0aec444;p=pandora-kernel.git sys_swapon: remove bdev variable The bdev variable is always equivalent to (S_ISBLK(inode->i_mode) ? p->bdev : NULL), as long as it being set is moved to a bit earlier. Use this fact to remove the bdev variable. Signed-off-by: Cesar Eduardo Barros Tested-by: Eric B Munson Acked-by: Eric B Munson Reviewed-by: KAMEZAWA Hiroyuki Cc: Hugh Dickins Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed