Re: [PATCH v2] Staging: rtl8712: Removed unused return variable

From: Dan Carpenter
Date: Thu Apr 23 2015 - 11:58:20 EST


This patch is a coccinelle thing, the reasoning behind it is that
literals are more clear than variables.

return status; <-- Ambiguous. This could be returning anything,
you have to look at the context.

return 0; <-- Clear.

regards,
dan carpenter

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/