Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp1413592rdg; Sat, 14 Oct 2023 00:50:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHo5wZLv769jbGL9oXnU368DfB4zt6GsG9GRs+DLcXdOHV3obiEczudx1+nnVWt6HumVJN8 X-Received: by 2002:a05:6808:10c6:b0:3ae:349:7c03 with SMTP id s6-20020a05680810c600b003ae03497c03mr40079120ois.27.1697269853058; Sat, 14 Oct 2023 00:50:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697269852; cv=none; d=google.com; s=arc-20160816; b=V8YOsIkqYGNK+XKmdtljjBmvwoGnyiUXYrSsE41nzFH69MJ3OwZlPaV+7Nb8w5sjL1 +l9/cTbRvJngwW1hIoypDDuDbXoTOjfwkVpIfHxSO5M/6YcPkUErXzNxHqMU1dYohxed GkPomwk9d5dOamPy2FfclHcmUS/7In1ukZsDnzBFqxVL2WKufXiyJhv70ihDXp17mtSh es2e+F+QVQVP30ThZV+JgZIBpdRMZ/K81TVRO4fVlmPC5YddRL3uESUGqkDpg2zGbkPq nud2k+tOx+eZHtFNLZVpaNZ0XdaeLDyD9S60KbkEp3hJxSQQoyMxkcgMosg7hMurqN6+ GKkA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=xPY90v//iOlz4xzjpngsgS9qOCgffU46A47kFOVCgRk=; fh=FKA19+M91hD3tQ0DV+kl7PRaRzUQKDV4CThWYjjQpk4=; b=OGhsjEFpNv+yCrLNqAbASRdy6nhs/9ZxY98xGo1f8/ITgiZA5zGXhk9jCM0I7lmMnE OfnaDFx1awYhTkVj6YMS9ZLVcSql++QghoFNZqMEZOiX3g6FjrMHw9M31ZZuK80wBph2 JYSXOYdpD6KtCtMBayhbGaIKxRxiTvhtDEv2G8FJGHjB814xsKQsbhcTHUq1L9Q+SP4E 9USm7iW6y82s5sT7HEEncsj3cXeh6eyjOZTfPvEtojnVxYX3Bq3rFcCEwKeK2c96WQlF JLIeFjDAimA4Ts6sjLplFPPqZu0Mg5hXLy8/BlHTG+KL81uW+5hCTcnEjfd8KTjDiP2f bStg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d1Xq7tGv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [2620:137:e000::3:3]) by mx.google.com with ESMTPS id s16-20020a056a0008d000b0064f78c32b89si20077044pfu.95.2023.10.14.00.50.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:50:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) client-ip=2620:137:e000::3:3; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=d1Xq7tGv; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:3 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id D10BB8041968; Sat, 14 Oct 2023 00:50:50 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232842AbjJNHug (ORCPT + 99 others); Sat, 14 Oct 2023 03:50:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39528 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232717AbjJNHue (ORCPT ); Sat, 14 Oct 2023 03:50:34 -0400 Received: from mail-yb1-xb30.google.com (mail-yb1-xb30.google.com [IPv6:2607:f8b0:4864:20::b30]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 101B8A9; Sat, 14 Oct 2023 00:50:33 -0700 (PDT) Received: by mail-yb1-xb30.google.com with SMTP id 3f1490d57ef6-d865854ef96so3165264276.2; Sat, 14 Oct 2023 00:50:33 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1697269832; x=1697874632; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=xPY90v//iOlz4xzjpngsgS9qOCgffU46A47kFOVCgRk=; b=d1Xq7tGvzHwtrc5cVOu6oEvaYl1fA6cWDci4gYfAaCR78S49p/y9E3GRZbGH6i69MJ YKM09rUr/8UDZHIE7Q4kZT25X+6XOtEr3B6/k6dB+n/A6LmNEB+Nccr0OLx+KGwG8Gzu BqswuSVJMUpf97zRaY2pMpswxsf7DjfHX/WsSV/HO+kKWHJgYsEjfL1djgh95RjLp5pl bDvdDQZzqio5nMjrzL+fvx1KGpt9gJnIg1B1SB7ASx1DOaUkVegFDTKeqImqA0rBzfJ/ LswlbYXF3zs7ba3ZxC+uZ0Gl7X7dpotYk5QfcrkiA0UaFq/o/+n5httVIm3icB3lJm5B yMcA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1697269832; x=1697874632; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=xPY90v//iOlz4xzjpngsgS9qOCgffU46A47kFOVCgRk=; b=oalxFj9QG4kZOt4I3F9m021br+0dWFvjYkCQNKvOHh9Uadg9F5MPrhA+bZklNbdqOl 0/iXePhEvVzqkAcLAjCDRjDwbQw1v5PX2USyLSj5GNM1ttptISCqzNCldRwYLmIPvleo 26zhdW0+1TlXsHvhnILRjBnhVf7hxNqbcz78P9e18Zp2tLthUh6h3olqg417dFMZ2acb Yh9XarjsCfyZUDpeXtIX+5Vn/7JTjZfTSiWf/gQyriOqUBFtKR24Ymsi2REqKEdTSd8E V+pBAzITHJPRFmTRM/oCaAjzqrEsPTtUgA/uUmUbp7AqPDW9URLC3D3+HBFfs1QE5koO lCwg== X-Gm-Message-State: AOJu0Yz0x/3P0D2qZFJ890FJMTljLKHT6SYWAci7ZqQMYJwM9Dd5xXUX oB+osKBV3CWMwsmxKm/1N78= X-Received: by 2002:a25:c702:0:b0:d9a:c946:bb47 with SMTP id w2-20020a25c702000000b00d9ac946bb47mr6793962ybe.5.1697269832173; Sat, 14 Oct 2023 00:50:32 -0700 (PDT) Received: from gilbert-PC ([105.112.18.68]) by smtp.gmail.com with ESMTPSA id 81-20020a250154000000b00d7b8a1074d4sm1042967ybb.57.2023.10.14.00.50.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 14 Oct 2023 00:50:30 -0700 (PDT) Date: Sat, 14 Oct 2023 08:50:22 +0100 From: Gilbert Adikankwu To: Nam Cao Cc: outreachy@lists.linux.dev, manishc@marvell.com, GR-Linux-NIC-Dev@marvell.com, coiby.xu@gmail.com, gregkh@linuxfoundation.org, netdev@vger.kernel.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org Subject: Re: [PATCH] staging: qlge: Add bool type to qlge_idc_wait() Message-ID: References: <20231014065813.mQvFyjWb@linutronix.de> <20231014071423.UgDor1v0@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231014071423.UgDor1v0@linutronix.de> X-Spam-Status: No, score=-0.6 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE, SPF_PASS autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Sat, 14 Oct 2023 00:50:50 -0700 (PDT) On Sat, Oct 14, 2023 at 09:14:23AM +0200, Nam Cao wrote: > On Sat, Oct 14, 2023 at 08:58:13AM +0200, Nam Cao wrote: > > On Sat, Oct 14, 2023 at 07:11:59AM +0100, Gilbert Adikankwu wrote: > > > Reported by checkpatch: > > > > > > WARNING: else is not generally useful after a break or return > > > > > > > What checkpatch is telling you here is that the "else" is redundant and > > can be removed. Although your patch suppresses the warning, it makes the > > code messier :( > > Ah wait, after reading Julia's comment, I realize that the "else" is not > redundant at all. Seems like checkpatch.pl is lying. So ignore what I > said. Thanks