Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2150554ybl; Sat, 31 Aug 2019 09:01:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwnUz/3QuD5J9eCsBMqiQhjzNwAuXZ4HplsAdta5BMid+ikJaQdrWReix7rF51VuBct+mWa X-Received: by 2002:aa7:9e9a:: with SMTP id p26mr25638645pfq.25.1567267260370; Sat, 31 Aug 2019 09:01:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567267260; cv=none; d=google.com; s=arc-20160816; b=BCTjoJD3Wd07dEpLZXDTBfO5ThZtEOpga+kuLO2zUbu9wTRFVHf0sUqwPRSlLKBsRG xTKfmWNEE1XjIx5DxZWAJUgl1UzVRpPHOPqsE+YBAjO0YMFlcf90NpaP0aMCmpu/Xq9E 11QVfYdBAxaTSEc2vJViKN72mh/JhdmytH8Z/0E04cFHjOZGFGhMd7mpvfpvEnkIiZqM HbB8rq08rePh4E1TLKaFmn1+ivfoY8IfyOvwgyjebiTjYh5DTgPDjXbj24bV7xyj2e0U 4yK38CfkdjXrHNykmzSPo35RCI6tFfPNVJ0rr58ShjtCQ1G8geYGr3/s/pxKfjWHfxcQ J0lQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject; bh=wqHLN1Ubhfd+hVXSg+9EoM4u/DnI6dgG4zDin2xzzdE=; b=ZE9QWOnl5MDAk5pDOlKV1Ni55ZhNTGfEF9ZWRpK75w+JSd3X/c+VXxYhC9/aNxrxql CRLXtijLdtisrwfrbOqhpFZCq7sCyoOKhb4jRGOnCiukAmMIyaie86azwpdQenOd1kAo M37dayWC4/KmNQ9cJQYRBzlXK14dXjD0G7wVtu2pv6kfLL2Ci/5Zw7HVbZ83C5tNI0pi /jInGtG7FGPygZY4b+F/hs1JfYtpZ6xzyLEPC0XeXFlRafTsI2ICjO4bqx80ClcQDCKl jExJx64SZF35aVRvChF56x3w1zbCnXVRLO8dlbGD94sVOnjGsPgAh04oXfZ+qIlPmKYd T8ag== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o13si7589718pjt.11.2019.08.31.09.00.44; Sat, 31 Aug 2019 09:01:00 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728428AbfHaP74 (ORCPT + 99 others); Sat, 31 Aug 2019 11:59:56 -0400 Received: from mail-ed1-f67.google.com ([209.85.208.67]:39667 "EHLO mail-ed1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728274AbfHaP74 (ORCPT ); Sat, 31 Aug 2019 11:59:56 -0400 Received: by mail-ed1-f67.google.com with SMTP id u6so5583451edq.6 for ; Sat, 31 Aug 2019 08:59:55 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=wqHLN1Ubhfd+hVXSg+9EoM4u/DnI6dgG4zDin2xzzdE=; b=l+/ej7XGl/fLdZgl2VlfgqGw9Ijvg2j4Op02EbALJBcDyp9Fn1KA25KdaPSh8LY86K 9T/DU9gFDgZlUgScL6BOgP26K1po6XohrGxTiN7jN1F/VGrTRsV2nLBGXzmbHKs1qdqR q9fWWshEMUGr0npOR9gYHr5CYVcuXQoyVJVkeZtk8X6k7qBPXcJaU/j1wYI33i9zurnD Jf/LHoaLSnzmB918QXnjYNKSDfvMNBpd3cPe2Lq/689LPC8Wo1m3ESiXrIs/YB8IZ481 M237uYUxQV/MPcaL2A2g7RrlJq3eXDFohaWHxR7TEUFOIgWKx0cFMqDXAE4VVap1NPc0 G/9Q== X-Gm-Message-State: APjAAAWkn5xVsGYgl8cATGd8jVxiB6Kwk39x8lfX1U0x72RKHspernpd 0UvMZBGLNOY4rimp9FqX/Ad6J85r8Mk= X-Received: by 2002:aa7:ccc4:: with SMTP id y4mr21735740edt.1.1567267194704; Sat, 31 Aug 2019 08:59:54 -0700 (PDT) Received: from [10.68.32.192] (broadband-188-32-48-208.ip.moscow.rt.ru. [188.32.48.208]) by smtp.gmail.com with ESMTPSA id w14sm1727714eda.69.2019.08.31.08.59.53 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Sat, 31 Aug 2019 08:59:54 -0700 (PDT) Subject: Re: [PATCH v3 06/11] wimax/i2400m: remove unlikely() from WARN*() condition To: Markus Elfring , linux-wimax@intel.com Cc: Andrew Morton , Inaky Perez-Gonzalez , Joe Perches , linux-kernel@vger.kernel.org References: <20190829165025.15750-6-efremov@linux.com> From: Denis Efremov Message-ID: <4a064df8-9b44-8380-d7c5-8a94086c3a52@linux.com> Date: Sat, 31 Aug 2019 18:59:53 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 31.08.2019 14:25, Markus Elfring wrote: >>          pad_buf = i2400m_tx_fifo_push(i2400m, padding, 0, 0); >> -        if (unlikely(WARN_ON(pad_buf == NULL >> -                     || pad_buf == TAIL_FULL))) { >> +        if (WARN_ON(pad_buf == NULL || pad_buf == TAIL_FULL)) { > > How do you think about to use the following code variant? > > +        if (WARN_ON(!pad_buf || pad_buf == TAIL_FULL)) { > Well, I thought about it, because coccinelle warns about style here. But this condition looks more symmetric with direct comparison. I've decided that it will be better to save the original style. Thanks, Denis