lkml.org 
[lkml]   [2015]   [Apr]   [23]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2] Staging: rtl8712: Removed unused return variable
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



\
 
 \ /
  Last update: 2015-04-23 18:21    [W:0.049 / U:1.200 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site