aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/tokenring/tms380tr.c
diff options
context:
space:
mode:
authorAl Viro <viro@zeniv.linux.org.uk>2007-08-23 02:57:00 -0400
committerDavid S. Miller <davem@sunset.davemloft.net>2007-10-10 19:52:05 -0400
commit2929e7700fb64f58f9c501a293b98b6bf6c49403 (patch)
treeffb638ad6154bbf244149fbf4bb2fe649cdeff91 /drivers/net/tokenring/tms380tr.c
parentb963dc1df78399a2166c2e6e3eb726a2dc98cf11 (diff)
tms380tr: trivial endianness annotations
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/net/tokenring/tms380tr.c')
-rw-r--r--drivers/net/tokenring/tms380tr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/tokenring/tms380tr.c b/drivers/net/tokenring/tms380tr.c
index 12bd294045a7..d5fa36d36515 100644
--- a/drivers/net/tokenring/tms380tr.c
+++ b/drivers/net/tokenring/tms380tr.c
@@ -2124,7 +2124,7 @@ static void tms380tr_rcv_status_irq(struct net_device *dev)
2124 /* Get the frame size (Byte swap for Intel). 2124 /* Get the frame size (Byte swap for Intel).
2125 * Do this early (see workaround comment below) 2125 * Do this early (see workaround comment below)
2126 */ 2126 */
2127 Length = be16_to_cpu((unsigned short)rpl->FrameSize); 2127 Length = be16_to_cpu(rpl->FrameSize);
2128 2128
2129 /* Check if the Frame_Start, Frame_End and 2129 /* Check if the Frame_Start, Frame_End and
2130 * Frame_Complete bits are set. 2130 * Frame_Complete bits are set.
@@ -2140,7 +2140,7 @@ static void tms380tr_rcv_status_irq(struct net_device *dev)
2140 * Length2 is there because there have also been 2140 * Length2 is there because there have also been
2141 * cases where the FrameSize was partially written 2141 * cases where the FrameSize was partially written
2142 */ 2142 */
2143 Length2 = be16_to_cpu((unsigned short)rpl->FrameSize); 2143 Length2 = be16_to_cpu(rpl->FrameSize);
2144 2144
2145 if(Length == 0 || Length != Length2) 2145 if(Length == 0 || Length != Length2)
2146 { 2146 {