On Sat, 26 May 2007 00:11:26 -0700 (PDT), divyanshu verma wrote > Hi I am porting 8250 driver to RTAI framework. > On reviewing 8250.c, I can see the following code piece, which > I am not able to comprehend. static void __init > serial8250_isa_init_ports(void) { static int first=1; > if(!first) return; first =0; ... ... ... } > > My question is that " what is the purpose of this if condition? You only want to init the ports once. This conditional will cause the function to return without doing anything after the first call. Eric Johnson -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ