warning: comparison is always false due to limited range of datatype

From: David Ford
Date: Sat Aug 07 2004 - 18:17:19 EST


2.6.8-rc3

CC fs/smbfs/inode.o
fs/smbfs/inode.c: In function `smb_fill_super':
fs/smbfs/inode.c:563: warning: comparison is always false due to limited range of data type
fs/smbfs/inode.c:564: warning: comparison is always false due to limited range of data type

559 mnt->ttl = SMB_TTL_DEFAULT;
560 if (ver == SMB_MOUNT_OLDVERSION) {
561 mnt->version = oldmnt->version;
562
563 SET_UID(mnt->uid, oldmnt->uid);
564 SET_GID(mnt->gid, oldmnt->gid);
565
566 mnt->file_mode = (oldmnt->file_mode & S_IRWXUGO) | S_IFREG;
567 mnt->dir_mode = (oldmnt->dir_mode & S_IRWXUGO) | S_IFDIR;
568
569 mnt->flags = (oldmnt->file_mode >> 9);
570 } else {
571 if (parse_options(mnt, raw_data))
572 goto out_bad_option;
573 }

begin:vcard
fn:David Ford
n:Ford;David
email;internet:david@xxxxxxxxxxxxx
title:Industrial Geek
tel;home:Ask please
tel;cell:(203) 650-3611
x-mozilla-html:TRUE
version:2.1
end:vcard