Skip to contentSkip to conversation

Tiny fix to remove dead code

Ocfs2-devel John L. Villalovos 2 participants 2 messages Mar 19, 2004 – Mar 22, 2004 OCFS2

lore
Share & tools
lore
#0 lore raw

Since this section of code is wrapped in a
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
it seemed like this was redundant.

John

file.c +0 -4
Index: src/file.c
===================================================================
@@ -1502,11 +1502,7 @@
  	stat->nlink = inode->i_nlink;
  	stat->uid = inode->i_uid;
  	stat->gid = inode->i_gid;
-#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
  	stat->rdev = inode->i_rdev;
-#else
- 	stat->rdev = kdev_t_to_nr(inode->i_rdev);
-#endif
  	stat->atime = inode->i_atime;
  	stat->mtime = inode->i_mtime;
  	stat->ctime = inode->i_ctime;
#1 lore raw
Quoted 3 lines · John L. Villalovos

Since this section of code is wrapped in a
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,0)
it seemed like this was redundant.

Alright, for whatever reason I had to hand patch this one, but it's in there.

	--Mark

--
Mark Fasheh
Software Developer, Oracle Corp
[email protected]