c - What is the intention of following function? -


i found following function in device driver code.

static void module_exit(void) {         { } while (0); } 

my question why used do { } while (0); inside function. can return there instead of calling do { } while (0);. there special reason having do { } while (0); here?

there no special reason use while, in module_exit has clean functions un-register drivers. while exit in case. while(0) false case , fall out of loop .


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -