From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40285) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljPy-0004e7-Mu for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:37:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YljPv-0001o9-Ph for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:37:42 -0400 Received: from mx1.redhat.com ([209.132.183.28]:55662) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YljPv-0001o5-LI for qemu-devel@nongnu.org; Fri, 24 Apr 2015 15:37:39 -0400 From: Eduardo Habkost Date: Fri, 24 Apr 2015 16:37:30 -0300 Message-Id: <1429904252-9841-2-git-send-email-ehabkost@redhat.com> In-Reply-To: <1429904252-9841-1-git-send-email-ehabkost@redhat.com> References: <1429904252-9841-1-git-send-email-ehabkost@redhat.com> Subject: [Qemu-devel] [PATCH 1/3] target-i386: Coding style fix on x86_cpuid_set_vendor() List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Igor Mammedov , Richard Henderson , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Paolo Bonzini checkpatch.pl doesn't like the extra spaces inside the square brackets, but the alignment makes the code easier to read. Add a "+ 0" to keep alignment while making checkpatch.pl happy. Signed-off-by: Eduardo Habkost --- target-i386/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/target-i386/cpu.c b/target-i386/cpu.c index 07465ac..11da4b5 100644 --- a/target-i386/cpu.c +++ b/target-i386/cpu.c @@ -1640,7 +1640,7 @@ static void x86_cpuid_set_vendor(Object *obj, const char *value, env->cpuid_vendor2 = 0; env->cpuid_vendor3 = 0; for (i = 0; i < 4; i++) { - env->cpuid_vendor1 |= ((uint8_t)value[i ]) << (8 * i); + env->cpuid_vendor1 |= ((uint8_t)value[i + 0]) << (8 * i); env->cpuid_vendor2 |= ((uint8_t)value[i + 4]) << (8 * i); env->cpuid_vendor3 |= ((uint8_t)value[i + 8]) << (8 * i); } -- 2.1.0