[PATCH 1/3] inet: rs_cleanup: ensure data->channel exist before accessing it

Tomasz Bursztyka tomasz.bursztyka at linux.intel.com
Tue Feb 28 23:35:43 PST 2012


Hi,

The patch looks fine. Just a very minor style issue:

> -	data->channel = 0;
> +	if (data->channel) {
if (data->channel != NULL) {
is the way to write.

Also (the error was there before though):
data->channel = NULL;
is better.

Br,

Tomasz



More information about the connman mailing list