From: Ryusuke Konishi Date: Thu, 16 Apr 2015 19:46:45 +0000 (-0700) Subject: nilfs2: fix gcc warning at nilfs_checkpoint_is_mounted() X-Git-Tag: omap-for-v4.1/fixes-rc1~115^2~61 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3377f843cf80e33d63f1a3ded67fd129a298c6b0;p=pandora-kernel.git nilfs2: fix gcc warning at nilfs_checkpoint_is_mounted() Fix the following build warning: fs/nilfs2/super.c: In function 'nilfs_checkpoint_is_mounted': fs/nilfs2/super.c:1023:10: warning: comparison of unsigned expression < 0 is always false [-Wtype-limits] if (cno < 0 || cno > nilfs->ns_cno) ^ This warning indicates that the comparision "cno < 0" is useless because variable "cno" has an unsigned integer type "__u64". Signed-off-by: Ryusuke Konishi Reported-by: David Binderman Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- Reading git-diff-tree failed