From nobody Sat Feb 7 09:04:10 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) client-ip=63.128.21.124; envelope-from=libvir-list-bounces@redhat.com; helo=us-smtp-delivery-124.mimecast.com; Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1611940457; cv=none; d=zohomail.com; s=zohoarc; b=cx5/8OMzjLLbxlfHpuqUlYVGxXXX2l4dwVeFAK/wAxp8pec7ldt/0dH7BBIfIFFKruZuEKlKu5EQLBBWNxB7yW9dmxjm57S1hdQv587bvCdttwHXwQufhu3K6UyVpjUs4AQeyiatZh0J5fDiEzKI+2xGrzihGbxd9zgraPcWydY= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1611940457; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Gbi6B0K/FuSJi96fDmspZ/JcpueXhhF8FsKIc8ujvn0=; b=WcvzJgfFxH7mVelhcZcpMjIYBjWl4R5fu9/+ygXkVBmt1X0rYue5+KwO690NJL8dxigIQA2g3/ylyCRM00tiOqN4k/ncx2JmsvHak8BnnDQYSc/chHcpV55sssx7TM+v1akOyUJtodSTCrsYwXRN1IEggsTbFeuDvZ7ZfLlvxbs= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of redhat.com designates 63.128.21.124 as permitted sender) smtp.mailfrom=libvir-list-bounces@redhat.com; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [63.128.21.124]) by mx.zohomail.com with SMTPS id 1611940457187264.0139557206272; Fri, 29 Jan 2021 09:14:17 -0800 (PST) Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-210-3vk7pyybNtWYQU099zrM7g-1; Fri, 29 Jan 2021 12:14:08 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 5BDD48066E9; Fri, 29 Jan 2021 17:14:01 +0000 (UTC) Received: from colo-mx.corp.redhat.com (colo-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.20]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 3AFAA60CD0; Fri, 29 Jan 2021 17:14:01 +0000 (UTC) Received: from lists01.pubmisc.prod.ext.phx2.redhat.com (lists01.pubmisc.prod.ext.phx2.redhat.com [10.5.19.33]) by colo-mx.corp.redhat.com (Postfix) with ESMTP id 02D8C1809C9F; Fri, 29 Jan 2021 17:14:01 +0000 (UTC) Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) by lists01.pubmisc.prod.ext.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id 10THDxRX019497 for ; Fri, 29 Jan 2021 12:14:00 -0500 Received: by smtp.corp.redhat.com (Postfix) id ECA725B694; Fri, 29 Jan 2021 17:13:59 +0000 (UTC) Received: from localhost.localdomain.com (ovpn-115-94.ams2.redhat.com [10.36.115.94]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9D1485D705; Fri, 29 Jan 2021 17:13:33 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1611940451; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post; bh=Gbi6B0K/FuSJi96fDmspZ/JcpueXhhF8FsKIc8ujvn0=; b=BLHlVxuEwiwxaee5V5ggtxPGbMk8n4tmkK9guEa8pBdp9odpygR0MwSD/TZyEsRKZ7Bn4V OKICdJYyir9Os3QgoPtLsKgbJC4yPyuzt5AIwzu8jvBaFf5oVp+SJlaq5I6dcfJ3uk3Phm kn+z6anXXGA0FcAHWarkCSU5eFIWxWs= X-MC-Unique: 3vk7pyybNtWYQU099zrM7g-1 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= To: qemu-devel@nongnu.org Subject: [PULL 10/13] crypto: Add spaces around operator Date: Fri, 29 Jan 2021 17:10:59 +0000 Message-Id: <20210129171102.4109641-11-berrange@redhat.com> In-Reply-To: <20210129171102.4109641-1-berrange@redhat.com> References: <20210129171102.4109641-1-berrange@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.79 on 10.5.11.15 X-loop: libvir-list@redhat.com Cc: Kevin Wolf , qemu-block@nongnu.org, libvir-list@redhat.com, shiliyang , Max Reitz , Gerd Hoffmann , Paolo Bonzini X-BeenThere: libvir-list@redhat.com X-Mailman-Version: 2.1.12 Precedence: junk List-Id: Development discussions about the libvirt library & tools List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: libvir-list-bounces@redhat.com Errors-To: libvir-list-bounces@redhat.com X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=libvir-list-bounces@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-ZohoMail-DKIM: pass (identity @redhat.com) From: shiliyang I am reading crypto related code, find some code style problems while using checkpatch.pl to check crypto folder. Fix the error style problems. Signed-off-by: Liyang Shi Signed-off-by: Daniel P. Berrang=C3=A9 --- crypto/aes.c | 4 ++-- crypto/desrfb.c | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/crypto/aes.c b/crypto/aes.c index 56efc95196..af72ff7779 100644 --- a/crypto/aes.c +++ b/crypto/aes.c @@ -1080,9 +1080,9 @@ int AES_set_encrypt_key(const unsigned char *userKey,= const int bits, =20 rk =3D key->rd_key; =20 - if (bits=3D=3D128) + if (bits =3D=3D 128) key->rounds =3D 10; - else if (bits=3D=3D192) + else if (bits =3D=3D 192) key->rounds =3D 12; else key->rounds =3D 14; diff --git a/crypto/desrfb.c b/crypto/desrfb.c index 675847c93b..b2a105ebbc 100644 --- a/crypto/desrfb.c +++ b/crypto/desrfb.c @@ -93,7 +93,7 @@ void deskey(unsigned char *key, int edf) } for( j =3D 0; j < 24; j++ ) { if( pcr[pc2[j]] ) kn[m] |=3D bigbyte[j]; - if( pcr[pc2[j+24]] ) kn[n] |=3D bigbyte[j]; + if( pcr[pc2[j + 24]] ) kn[n] |=3D bigbyte[j]; } } cookey(kn); --=20 2.29.2