X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fnet%2Fskfp%2Fpmf.c;h=e9422e654cbf9f3937c41f8ec68a5b34856b4e9f;hb=3e3ff47c8527c5ba0be4e9f358d49e4b076bd6ef;hp=f2b446d8b0bffc90407dbdaf3f85afc738956097;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/drivers/net/skfp/pmf.c b/drivers/net/skfp/pmf.c index f2b446d8b..e9422e654 100644 --- a/drivers/net/skfp/pmf.c +++ b/drivers/net/skfp/pmf.c @@ -558,8 +558,8 @@ void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para, { struct smt_para *pa ; const struct s_p_tab *pt ; - struct fddi_mib_m *mib_m = NULL; - struct fddi_mib_p *mib_p = NULL; + struct fddi_mib_m *mib_m = 0 ; + struct fddi_mib_p *mib_p = 0 ; int len ; int plen ; char *from ; @@ -644,7 +644,7 @@ void smt_add_para(struct s_smc *smc, struct s_pcon *pcon, u_short para, /* * check special paras */ - swap = NULL; + swap = 0 ; switch (para) { case SMT_P10F0 : case SMT_P10F1 : @@ -1091,9 +1091,9 @@ int smt_set_para(struct s_smc *smc, struct smt_para *pa, int index, int local, char c ; char *mib_addr ; struct fddi_mib *mib ; - struct fddi_mib_m *mib_m = NULL; - struct fddi_mib_a *mib_a = NULL; - struct fddi_mib_p *mib_p = NULL; + struct fddi_mib_m *mib_m = 0 ; + struct fddi_mib_a *mib_a = 0 ; + struct fddi_mib_p *mib_p = 0 ; int mac ; int path ; int port ; @@ -1533,7 +1533,7 @@ static const struct s_p_tab *smt_get_ptab(u_short para) const struct s_p_tab *pt ; for (pt = p_tab ; pt->p_num && pt->p_num != para ; pt++) ; - return(pt->p_num ? pt : NULL) ; + return(pt->p_num ? pt : 0) ; } static int smt_mib_phys(struct s_smc *smc)