Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp6200252imm; Mon, 27 Aug 2018 11:26:09 -0700 (PDT) X-Google-Smtp-Source: ANB0VdYbhdSqdXU1N4IuvtCuZdUC5asX1/t41Nk+ZwDEAe9hMKMK2iV5AYJDaQURXtStBU1s+IAT X-Received: by 2002:a17:902:2904:: with SMTP id g4-v6mr13896544plb.70.1535394369592; Mon, 27 Aug 2018 11:26:09 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535394369; cv=none; d=google.com; s=arc-20160816; b=UaCh9JIsvDhod9M2eoOAh/uF6ZKtDBmm54jWT1dr9+uzzlIrKULJDMijJ1Hlzc1QH0 I0/ZDGTduf1bY8LtCfllv2s2kukf35z4a/zodPwu0HxK5gQdOXFk7qiiVv11orAakwsa ldhv+H75IdAsJg23xk8hglK/wvm7v/tuK07NWXIPJLv3ZQSqhieF2aJL76e2ALOe+lG/ Tb7zhGozksyjSKFrw1ah6aaSfGLVKNG0J3Z9BRvQQ76u0BvHaAKuEuwQDAnwmrYfEZZ4 QmqLWd5hxMnBxqc/v7vzxdRT+PYRWzZIKRJRKc+r3yCYDOjt2h/k0XJ93/hnM9wbPo8s eWJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:from:subject:references :mime-version:message-id:in-reply-to:date:dkim-signature :arc-authentication-results; bh=2c4GrvMVIN+90M0LSZ+sVRiyBlUKjkTDXgUoXJHIdRc=; b=u4MsmlGBb/JlJ67H06k/2A9P3C2kmloDbd4cMFfrbrIslNGyj3ubPDnGhCFL3Hqj6i ejbAqsJq9cxn433/sO/sRlsl7UDgk2TVNQPWTG/8vRQijkMdCjOLx/DFtqBE97wsQRCh eYufTLD1c9nwIzNcajpx28wbrwHFk2rY6mDp0AP+ZHEfUUe1a62myCc9/w5O0nwrSl3o K83UbOZLLHGIHLCMWw/EE0ncH7ThZOqbs0uFsaOoU5pK+IMNA8z0TJ+MMGQNtNRyniTd 5a5xrVuyDly8FUnfwkZVki3WsfMkPh4az1iQomJgd4ZHl16e0DnOVYdDA1DkF3NsvRD8 qmmw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e7h0FHmr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id az9-v6si10041906plb.423.2018.08.27.11.25.54; Mon, 27 Aug 2018 11:26:09 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=e7h0FHmr; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727835AbeH0WMH (ORCPT + 99 others); Mon, 27 Aug 2018 18:12:07 -0400 Received: from mail-pf1-f202.google.com ([209.85.210.202]:46937 "EHLO mail-pf1-f202.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726895AbeH0WMG (ORCPT ); Mon, 27 Aug 2018 18:12:06 -0400 Received: by mail-pf1-f202.google.com with SMTP id x85-v6so12318328pfe.13 for ; Mon, 27 Aug 2018 11:24:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=date:in-reply-to:message-id:mime-version:references:subject:from:to :cc; bh=2c4GrvMVIN+90M0LSZ+sVRiyBlUKjkTDXgUoXJHIdRc=; b=e7h0FHmrIZhLyT1B1v1NjH3Wujf0m9h3bgjRg1kdvenPa6ospPMk4EnsB2L1pg5X9E 6X+Vkl2/PG9TGu9CAMjA1W2iA0Xgsb8dPuQfz3jfNPrwy9gWpFPzauOra+/+iHQrmasg 208ANrDzXuoS7V9cITCDpqmgzYxDH+VI96LBCHa09MwuxeQOxDfiKw0hKjHlIM1S9zKI Ozucp1OPqB2fmfhDlNJl62MXMPStMPRz71frrvW09esSTf/GhcQGLmgP2el7FqRF3t3R z/7JJbApzJ7V6woVeB4T4ptUsaK+6IVkj5WqQKahBu+i/kgRxD9aKQzBidgncQms2Nta ONaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:in-reply-to:message-id:mime-version :references:subject:from:to:cc; bh=2c4GrvMVIN+90M0LSZ+sVRiyBlUKjkTDXgUoXJHIdRc=; b=WxqPWjC27AOV2N60r3SzD/TGDX26CBivSgV/OJih13EPFilTdk5QKAuaGjIaTmAVu3 9j+aiwBE+aaSv6TWGHoIWrnn0nNjSHMTIy74tEgobkuEVlZ+ohBgD3/oEgNP7N72wD5P L5cTTBh3sVmjKfKYwAO+tQdOHqXHZFkPhcgrjPUUz+u7komkfQJSV5lUNqcb93PmS00K OySjrFcPbmak45oWZV886oZYC5+Rd86XZZy0faOSVtZtfiz1FfbCYi9N5tFct71hw7QJ GeUhNzwfAnfkwBr99dJtbu35AOYaMDsGMxFKaroEyFDLn+0/J13U5VbQ9qzGu/EJdcJc yf3Q== X-Gm-Message-State: APzg51DZ+k/Ej1iiT9M34UF34qyd8LXGbcf65CrcRoeBsAw87TIGTO63 O89PrYlgV0u1GUbTMV1BEY1D95od X-Received: by 2002:a63:a06a:: with SMTP id u42-v6mr3401135pgn.32.1535394264542; Mon, 27 Aug 2018 11:24:24 -0700 (PDT) Date: Mon, 27 Aug 2018 11:23:12 -0700 In-Reply-To: <20180827182315.126345-1-rkir@google.com> Message-Id: <20180827182315.126345-17-rkir@google.com> Mime-Version: 1.0 References: <20180827182315.126345-1-rkir@google.com> X-Mailer: git-send-email 2.19.0.rc0.228.g281dcd1b4d0-goog Subject: [PATCH 17/20] platform: goldfish: pipe: Fix lines to not end an opening bracket From: rkir@google.com To: gregkh@linuxfoundation.org Cc: linux-kernel@vger.kernel.org, tkjos@google.com, Roman Kiryanov Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Roman Kiryanov checkpatch: Lines should not end with a '(' or '[' Signed-off-by: Roman Kiryanov --- drivers/platform/goldfish/goldfish_pipe.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/drivers/platform/goldfish/goldfish_pipe.c b/drivers/platform/goldfish/goldfish_pipe.c index 95256a5c593c..324129879b09 100644 --- a/drivers/platform/goldfish/goldfish_pipe.c +++ b/drivers/platform/goldfish/goldfish_pipe.c @@ -122,8 +122,8 @@ struct open_command_param { /* Device-level set of buffers shared with the host */ struct goldfish_pipe_dev_buffers { struct open_command_param open_command_params; - struct signalled_pipe_buffer signalled_pipe_buffers[ - MAX_SIGNALLED_PIPES]; + struct signalled_pipe_buffer + signalled_pipe_buffers[MAX_SIGNALLED_PIPES]; }; /* This data type models a given pipe instance */ @@ -373,8 +373,7 @@ static int wait_for_host_signal(struct goldfish_pipe *pipe, int is_write) is_write ? PIPE_CMD_WAKE_ON_WRITE : PIPE_CMD_WAKE_ON_READ); while (test_bit(wake_bit, &pipe->flags)) { - if (wait_event_interruptible( - pipe->wake_queue, + if (wait_event_interruptible(pipe->wake_queue, !test_bit(wake_bit, &pipe->flags))) return -ERESTARTSYS; -- 2.19.0.rc0.228.g281dcd1b4d0-goog