When the first condition is checked, my_own_frontend_attach() function is called, using dvb_attach() macro to gain the adap->fe pointer, in my driver it is successful.
But my driver still can not register any frontend to the Linux DVB core, it must for the second condition, So I think maybe this state is unsuitable here.
Maybe should be something like this:
if(adap->props.frontend_attach(adap) == 0)
if(adap->fe != NULL)
....................
So what is your opinion?
> it cannot enter this function? Why, because the compiler is checking
> adap->fe first?
The reason is the second condition. Maybe Gcc compiler check the second condition first.
人 山 人 海 盛 景,尽 在 梦 幻 西 游
_______________________________________________ linux-dvb mailing list linux-dvb@xxxxxxxxxxx http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb