Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id F1B04C433EF for ; Sun, 12 Dec 2021 16:19:08 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231610AbhLLQTH (ORCPT ); Sun, 12 Dec 2021 11:19:07 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.129.124]:33797 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230303AbhLLQTG (ORCPT ); Sun, 12 Dec 2021 11:19:06 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1639325945; h=from:from: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; bh=6cCjOZqs12xhpuMFVCB4bMBXHSeejxEaibApUugkFrU=; b=Lz8Cu0/wR2KySHEnREopPZ0mUkYk2tlEykW172pkG1QPpVQRzOPnWZnNhZ7rqmsb8Ife7+ i4P4YUEMEtS6RPcQv0XTyT2MtTuqMwKnNioQGGR/7vif+UxIah/XtmwaJmV6Evo7V0uRVa iHQr8KH3uzm2Kuhe499/qf+29M/D6Ag= Received: from mail-oo1-f70.google.com (mail-oo1-f70.google.com [209.85.161.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-497-iT3xpjSeMaGNvEEPn9Kuzg-1; Sun, 12 Dec 2021 11:19:04 -0500 X-MC-Unique: iT3xpjSeMaGNvEEPn9Kuzg-1 Received: by mail-oo1-f70.google.com with SMTP id g20-20020a4a7554000000b002caefc8179cso9278153oof.1 for ; Sun, 12 Dec 2021 08:19:04 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-transfer-encoding :content-language; bh=6cCjOZqs12xhpuMFVCB4bMBXHSeejxEaibApUugkFrU=; b=fPdCDciJcy2YsVBKsBXoAFch9qXmHIga1mkJIBUjsfNQo2Aw9bfOODak20vH1Ot0BB A7EOf+t+aQGMlENMJAdzeVYbOpYIkjuyQIsDgvQW+bZkWQAlh7y1mVl1YDYisND0/G0E LZ3lSpaywwukiCjbqFq+aKvZHpGiKxJyett2wB9+t+AEloA3jd/qhOTvfED6MoPZYWyE FsAahddniOSPfewO7Z1urTWKXqFtMmu1/r5/SrXYmz388lSf4nC4cuiz4dJ3sdC/eXx2 umuOZ+iw7+Jmqcs3jdQgxPwuSI2MxtNQGvdkDYhAmPQthwxM3qXSifxWRIDBIXN22PS9 JU5Q== X-Gm-Message-State: AOAM531qaSZTSD8jgzxcgAlY57nCPhKHsqvcs1bkWBJt0QM2oOObTz/5 fnUy8tOt8bKGPtzdqRzazQ/NzA3xrBc5vWAsMf6HvzFxEFLh90/qey5UXw65ZQCQIE1CCuOnt8E qA87nPQ+9vdM4Pei3uZ/IKnJ0DgnaFxIdf+DIvVDWq8ULFA7S1QFUySt7S/rUaBMdg+AChmc= X-Received: by 2002:a05:6808:1411:: with SMTP id w17mr23185883oiv.10.1639325943235; Sun, 12 Dec 2021 08:19:03 -0800 (PST) X-Google-Smtp-Source: ABdhPJxX7Uox2evc4myz9kRdrXIaCV/yCvO5RUReZz7+AKUJ1uFZNay6PJDdQIT3IgFssrEYDjCaJQ== X-Received: by 2002:a05:6808:1411:: with SMTP id w17mr23185866oiv.10.1639325942965; Sun, 12 Dec 2021 08:19:02 -0800 (PST) Received: from localhost.localdomain (075-142-250-213.res.spectrum.com. [75.142.250.213]) by smtp.gmail.com with ESMTPSA id w18sm1713186otm.1.2021.12.12.08.19.01 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sun, 12 Dec 2021 08:19:02 -0800 (PST) Subject: Re: [PATCH] fpga: stratix10-soc: fix typo in a comment To: Jason Wang , hao.wu@intel.com Cc: mdf@kernel.org, yilun.xu@intel.com, linux-fpga@vger.kernel.org, linux-kernel@vger.kernel.org References: <20211212031956.46029-1-wangborong@cdjrlc.com> From: Tom Rix Message-ID: Date: Sun, 12 Dec 2021 08:19:00 -0800 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: <20211212031956.46029-1-wangborong@cdjrlc.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit Content-Language: en-US Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/11/21 7:19 PM, Jason Wang wrote: > The double `if' in the comment in line 288 is repeated. Remove one > of them from the comment. > > Signed-off-by: Jason Wang > --- > drivers/fpga/stratix10-soc.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/drivers/fpga/stratix10-soc.c b/drivers/fpga/stratix10-soc.c > index 357cea58ec98..e4f2e83a615b 100644 > --- a/drivers/fpga/stratix10-soc.c > +++ b/drivers/fpga/stratix10-soc.c > @@ -285,7 +285,7 @@ static int s10_ops_write(struct fpga_manager *mgr, const char *buf, > > /* > * Loop waiting for buffers to be returned. When a buffer is returned, > - * reuse it to send more data or free if if all data has been sent. > + * reuse it to send more data or free if all data has been sent. This looks fine. Reviewed-by: Tom Rix > */ > while (count > 0 || s10_free_buffer_count(mgr) != NUM_SVC_BUFS) { > reinit_completion(&priv->status_return_completion);