Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

drivers/net/skfp/ess.c: fix compile warnings

CC [M] drivers/net/skfp/ess.o
drivers/net/skfp/ess.c: In function 'ess_send_response':
drivers/net/skfp/ess.c:513: warning: cast from pointer to integer of different size
drivers/net/skfp/ess.c: In function 'ess_send_alc_req':
drivers/net/skfp/ess.c:609: warning: cast from pointer to integer of different size
drivers/net/skfp/ess.c:639: warning: cast from pointer to integer of different size

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Cc: Jeff Garzik <jeff@garzik.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>

authored by

Takashi Iwai and committed by
Jeff Garzik
c22ce6d8 9b3b9ab6

+3 -3
+3 -3
drivers/net/skfp/ess.c
··· 510 510 chg->path.para.p_type = SMT_P320B ; 511 511 chg->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; 512 512 chg->path.mib_index = SBAPATHINDEX ; 513 - chg->path.path_pad = (u_short)NULL ; 513 + chg->path.path_pad = 0; 514 514 chg->path.path_index = PRIMARY_RING ; 515 515 516 516 /* set P320F */ ··· 606 606 req->path.para.p_type = SMT_P320B ; 607 607 req->path.para.p_len = sizeof(struct smt_p_320b) - PARA_LEN ; 608 608 req->path.mib_index = SBAPATHINDEX ; 609 - req->path.path_pad = (u_short)NULL ; 609 + req->path.path_pad = 0; 610 610 req->path.path_index = PRIMARY_RING ; 611 611 612 612 /* set P0017 */ ··· 636 636 /* set P19 */ 637 637 req->a_addr.para.p_type = SMT_P0019 ; 638 638 req->a_addr.para.p_len = sizeof(struct smt_p_0019) - PARA_LEN ; 639 - req->a_addr.sba_pad = (u_short)NULL ; 639 + req->a_addr.sba_pad = 0; 640 640 req->a_addr.alloc_addr = null_addr ; 641 641 642 642 /* set P1A */