From nobody Mon Feb 9 22:38:12 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org ARC-Seal: i=1; a=rsa-sha256; t=1608645462; cv=none; d=zohomail.com; s=zohoarc; b=ke0oSUDR7VGtj83YNp5tHyFX8lOZkcL+D/BrNHfUPjZ2YeDfH1Z2PNDI5vuSnqCxGq26Md9qZDgGJE7DP5OP6/oj9yZ8EPYGh54n/FU1YWJ5MMSH4P8UAQbcX2RpuGXO31y4GSwQw/okt5BsFkhMWzRJQyJq2HHKMJ96R3hnkJE= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1608645462; 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=/CNzQBmtnk5+AEGJRqqtSwUVrcVO87TDLDUl8ofNwNM=; b=l2BoqvGwsah750OqmI6Xl3aNGmWynMfwyHiCbqoBUR8y1sUbT14/0H19CS82fC4Mie8VMwvYz2Jc3YiY8myOfcIm4PatdLRb8WB7H7irz902UOO3vX3blMt/diArL6wIyZXHstqSyQRad2k6o4DT4vB5BWPYk4SeOJekbTRZt6M= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1608645462436753.3536210187589; Tue, 22 Dec 2020 05:57:42 -0800 (PST) Received: from localhost ([::1]:59988 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kriAX-0002lZ-93 for importer@patchew.org; Tue, 22 Dec 2020 08:57:41 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:41518) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krdBT-0001i9-PR; Tue, 22 Dec 2020 03:38:19 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:2919) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1krdBR-0002dx-3p; Tue, 22 Dec 2020 03:38:19 -0500 Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by szxga05-in.huawei.com (SkyGuard) with ESMTP id 4D0V7q1rf2zM7G1; Tue, 22 Dec 2020 16:37:11 +0800 (CST) Received: from huawei.com (10.175.124.27) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.498.0; Tue, 22 Dec 2020 16:37:55 +0800 From: Zhang Han To: Subject: [PATCH 9/9] net: Fix the indent problems Date: Tue, 22 Dec 2020 16:23:40 +0800 Message-ID: <20201222082340.67405-10-zhanghan64@huawei.com> X-Mailer: git-send-email 2.29.1.59.gf9b6481aed In-Reply-To: <20201222082340.67405-1-zhanghan64@huawei.com> References: <20201222082340.67405-1-zhanghan64@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable X-Originating-IP: [10.175.124.27] X-CFilter-Loop: Reflected Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=45.249.212.191; envelope-from=zhanghan64@huawei.com; helo=szxga05-in.huawei.com X-Spam_score_int: -41 X-Spam_score: -4.2 X-Spam_bar: ---- X-Spam_report: (-4.2 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Tue, 22 Dec 2020 08:55:39 -0500 X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: alex.chen@huawei.com, hunongda@huawei.com, qemu-trivial@nongnu.org, hang.zhanghailiang@huawei.com, qemu-devel@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" Content-Type: text/plain; charset="utf-8" Fix Suspect code indent for statements Signed-off-by: Zhang Han --- net/tap-solaris.c | 18 +++++++++--------- net/tap-win32.c | 28 ++++++++++++++-------------- net/vde.c | 2 +- 3 files changed, 24 insertions(+), 24 deletions(-) diff --git a/net/tap-solaris.c b/net/tap-solaris.c index 0b4f709abc..fc1e796f70 100644 --- a/net/tap-solaris.c +++ b/net/tap-solaris.c @@ -76,16 +76,16 @@ static int tap_alloc(char *dev, size_t dev_size, Error = **errp) memset(&ifr, 0x0, sizeof(ifr)); =20 if (*dev) { - ptr =3D dev; - while (*ptr && !qemu_isdigit((int)*ptr)) { - ptr++; - } - ppa =3D atoi(ptr); + ptr =3D dev; + while (*ptr && !qemu_isdigit((int)*ptr)) { + ptr++; + } + ppa =3D atoi(ptr); } =20 /* Check if IP device was opened */ if (ip_fd) { - close(ip_fd); + close(ip_fd); } =20 TFR(ip_fd =3D open("/dev/udp", O_RDWR, 0)); @@ -182,9 +182,9 @@ static int tap_alloc(char *dev, size_t dev_size, Error = **errp) ifr.lifr_arp_muxid =3D arp_muxid; =20 if (ioctl(ip_fd, SIOCSLIFMUXID, &ifr) < 0) { - ioctl(ip_fd, I_PUNLINK , arp_muxid); - ioctl(ip_fd, I_PUNLINK, ip_muxid); - error_report("Can't set multiplexor id"); + ioctl(ip_fd, I_PUNLINK , arp_muxid); + ioctl(ip_fd, I_PUNLINK, ip_muxid); + error_report("Can't set multiplexor id"); } =20 snprintf(dev, dev_size, "tap%d", ppa); diff --git a/net/tap-win32.c b/net/tap-win32.c index 107027aa24..b3af8fcba9 100644 --- a/net/tap-win32.c +++ b/net/tap-win32.c @@ -158,24 +158,24 @@ static tun_buffer_t *get_buffer_from_output_queue(tap= _win32_overlapped_t *const result =3D WaitForSingleObject(overlapped->output_queue_semaphore, tim= eout); =20 switch (result) { - /* The semaphore object was signaled. */ - case WAIT_OBJECT_0: - EnterCriticalSection(&overlapped->output_queue_cs); + /* The semaphore object was signaled. */ + case WAIT_OBJECT_0: + EnterCriticalSection(&overlapped->output_queue_cs); =20 - buffer =3D overlapped->output_queue_front; - overlapped->output_queue_front =3D buffer->next; + buffer =3D overlapped->output_queue_front; + overlapped->output_queue_front =3D buffer->next; =20 - if (overlapped->output_queue_front =3D=3D NULL) { - overlapped->output_queue_back =3D NULL; - } + if (overlapped->output_queue_front =3D=3D NULL) { + overlapped->output_queue_back =3D NULL; + } =20 - LeaveCriticalSection(&overlapped->output_queue_cs); - break; + LeaveCriticalSection(&overlapped->output_queue_cs); + break; =20 - /* Semaphore was nonsignaled, so a time-out occurred. */ - case WAIT_TIMEOUT: - /* Cannot open another window. */ - break; + /* Semaphore was nonsignaled, so a time-out occurred. */ + case WAIT_TIMEOUT: + /* Cannot open another window. */ + break; } =20 return buffer; diff --git a/net/vde.c b/net/vde.c index 0b06464f4d..9ccedddc63 100644 --- a/net/vde.c +++ b/net/vde.c @@ -55,7 +55,7 @@ static ssize_t vde_receive(NetClientState *nc, const uint= 8_t *buf, size_t size) ssize_t ret; =20 do { - ret =3D vde_send(s->vde, (const char *)buf, size, 0); + ret =3D vde_send(s->vde, (const char *)buf, size, 0); } while (ret < 0 && errno =3D=3D EINTR); =20 return ret; --=20 2.29.1.59.gf9b6481aed