[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1402961300-17985-1-git-send-email-anish@chelsio.com>
Date: Mon, 16 Jun 2014 16:28:20 -0700
From: Anish Bhatt <anish@...lsio.com>
To: linux-kernel@...r.kernel.org
Cc: joe@...ches.com, akpm@...ux-foundation.org,
Anish Bhatt <anish@...lsio.com>
Subject: Re: [PATCH] checkpatch: Warn on unnecessary void function return statements
This seems to ignore the ability to exit from void return functions via a `return;` in case of an error or similar. Any attempt to bail out generates warnings with checkpathch.pl Perhaps it should check for returns only at the end of the function ? If not, is there a suggested way to do this ? goto labels can't be directly used in place either
-Anish Bhatt
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists