summaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorBenjamin Poirier <bpoirier@suse.de>2012-04-25 04:49:20 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-25 14:24:33 -0400
commitda3a9e9e7b8341cfc939818103cb7ef9f5293de2 (patch)
treedd44a6a0dd670267dbfa077ea54eb20973d15b82 /drivers/net
parent2a5809499e35b53a6044fd34e72b242688b7a862 (diff)
downloadblackbird-op-linux-da3a9e9e7b8341cfc939818103cb7ef9f5293de2.tar.gz
blackbird-op-linux-da3a9e9e7b8341cfc939818103cb7ef9f5293de2.zip
tlan: add cast needed for proper 64 bit operation
Changes this beauty into a statement that actually has an effect on amd64. Tested-by: Per Jessen <per@opensuse.org> Signed-off-by: Benjamin Poirier <bpoirier@suse.de> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/ethernet/ti/tlan.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/ti/tlan.c b/drivers/net/ethernet/ti/tlan.c
index 817ad3bc4957..efd36691ce54 100644
--- a/drivers/net/ethernet/ti/tlan.c
+++ b/drivers/net/ethernet/ti/tlan.c
@@ -228,7 +228,7 @@ tlan_get_skb(const struct tlan_list *tag)
unsigned long addr;
addr = tag->buffer[9].address;
- addr |= (tag->buffer[8].address << 16) << 16;
+ addr |= ((unsigned long) tag->buffer[8].address << 16) << 16;
return (struct sk_buff *) addr;
}
OpenPOWER on IntegriCloud