From: Greg Rose Date: Thu, 1 Jul 2010 13:39:23 +0000 (+0000) Subject: igb: Add comment X-Git-Tag: v2.6.36-rc1~571^2~376 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=de42edde131cd09a556f0b90373569d64b92ef99;p=platform%2Fkernel%2Flinux-3.10.git igb: Add comment Add explanatory comment to avoid confusion when a pointer is set to the second word of an array instead of the customary cast of a pointer to the beginning of the array. Signed-off-by: Greg Rose Signed-off-by: Jeff Kirsher Signed-off-by: David S. Miller --- diff --git a/drivers/net/igb/igb_main.c b/drivers/net/igb/igb_main.c index d811462..9cb04e2 100644 --- a/drivers/net/igb/igb_main.c +++ b/drivers/net/igb/igb_main.c @@ -4974,6 +4974,10 @@ static void igb_vf_reset_msg(struct igb_adapter *adapter, u32 vf) static int igb_set_vf_mac_addr(struct igb_adapter *adapter, u32 *msg, int vf) { + /* + * The VF MAC Address is stored in a packed array of bytes + * starting at the second 32 bit word of the msg array + */ unsigned char *addr = (char *)&msg[1]; int err = -1;