Skip to content

Commit 6b0dc21

Browse files
committed
Removed endianess conditionals on mips ioctl
1 parent b1a407a commit 6b0dc21

File tree

1 file changed

+2
-9
lines changed
  • src/unix/linux_like/linux/arch/mips

1 file changed

+2
-9
lines changed

src/unix/linux_like/linux/arch/mips/mod.rs

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -132,12 +132,5 @@ pub const TIOCM_DSR: ::c_int = 0x400;
132132
pub const BOTHER: ::speed_t = 0o010000;
133133
pub const IBSHIFT: ::tcflag_t = 16;
134134

135-
cfg_if! {
136-
if #[cfg(target_endian = "little")] {
137-
pub const BLKSSZGET: ::c_int = 0x20001268;
138-
pub const BLKPBSZGET: ::c_int = 0x2000127B;
139-
} else if #[cfg(target_endian = "big")] {
140-
pub const BLKSSZGET: ::c_int = 0x20001268;
141-
pub const BLKPBSZGET: ::c_int = 0x2000127B;
142-
}
143-
}
135+
pub const BLKSSZGET: ::c_int = 0x20001268;
136+
pub const BLKPBSZGET: ::c_int = 0x2000127B;

0 commit comments

Comments
 (0)