Skip to content

Commit

Permalink
tlan: add cast needed for proper 64 bit operation
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Benjamin Poirier authored and David S. Miller committed Apr 25, 2012
1 parent 2a58094 commit da3a9e9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/ethernet/ti/tlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit da3a9e9

Please sign in to comment.