Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753405Ab0AUEEK (ORCPT ); Wed, 20 Jan 2010 23:04:10 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753277Ab0AUEEJ (ORCPT ); Wed, 20 Jan 2010 23:04:09 -0500 Received: from mail-qy0-f202.google.com ([209.85.221.202]:33529 "EHLO mail-qy0-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751846Ab0AUEEI (ORCPT ); Wed, 20 Jan 2010 23:04:08 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer; b=l6S8Ak/nizXODktjjuthst8Czp36o9weRNAao8sA1ot+aGBbBcNXT+YfxNjFqVrvkk BwxG5DlglojfxErw7ZnVdNTGSWh1MysB0G4irWf19FUPJerjiHSBafIndDw8DjIdOIw8 YcYTV/F5tPnm/ikLIwSFMy4V1lxooo2KztfNE= From: Thiago Farina To: linux-kernel@vger.kernel.org Cc: Alexander Viro , Andrew Morton , Roland McGrath , WANG Cong , Hugh Dickins , linux-fsdevel@vger.kernel.org Subject: [PATCH] fs/binfmt_elf.c: fix a do-while statement. Date: Wed, 20 Jan 2010 23:03:53 -0500 Message-Id: X-Mailer: git-send-email 1.6.6.243.gff6d2 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 908 Lines: 31 warning: do-while statement is not a compound statement Signed-off-by: Thiago Farina --- fs/binfmt_elf.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/binfmt_elf.c b/fs/binfmt_elf.c index edd90c4..75d6468 100644 --- a/fs/binfmt_elf.c +++ b/fs/binfmt_elf.c @@ -1404,9 +1404,9 @@ static void fill_auxv_note(struct memelfnote *note, struct mm_struct *mm) { elf_addr_t *auxv = (elf_addr_t *) mm->saved_auxv; int i = 0; - do + do { i += 2; - while (auxv[i - 2] != AT_NULL); + } while (auxv[i - 2] != AT_NULL); fill_note(note, "CORE", NT_AUXV, i * sizeof(elf_addr_t), auxv); } -- 1.6.6.243.gff6d2 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/