Alright . I will change it to if ( chan == (u32) -1 )  , correct ?