From mboxrd@z Thu Jan 1 00:00:00 1970 From: Amerigo Wang Subject: [Patch] fs: move a definition out of switch block Date: Mon, 30 Nov 2009 04:36:30 -0500 Message-ID: <20091130093929.4559.4449.sendpatchset@localhost.localdomain> Cc: Matthew Wilcox , Alexander Viro , Jonathan Corbet , Oleg Nesterov , Christoph Hellwig , Amerigo Wang , linux-fsdevel@vger.kernel.org, akpm@linux-foundation.org To: linux-kernel@vger.kernel.org Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org It's not a good practice to leave a definition between 'switch' and the its first label. Move it out of the switch block. Signed-off-by: WANG Cong Cc: Matthew Wilcox Cc: Alexander Viro Cc: Jonathan Corbet Cc: Oleg Nesterov Cc: Christoph Hellwig --- diff --git a/fs/fcntl.c b/fs/fcntl.c index 2cf93ec..23b0238 100644 --- a/fs/fcntl.c +++ b/fs/fcntl.c @@ -514,12 +514,12 @@ static void send_sigio_to_task(struct task_struct *p, * sure we read it once and use the same value throughout. */ int signum = ACCESS_ONCE(fown->signum); + siginfo_t si; if (!sigio_perm(p, fown, signum)) return; switch (signum) { - siginfo_t si; default: /* Queue a rt signal with the appropriate fd as its value. We use SI_SIGIO as the source, not