Received: by 2002:ac0:a5b6:0:0:0:0:0 with SMTP id m51-v6csp1853200imm; Thu, 14 Jun 2018 05:04:39 -0700 (PDT) X-Google-Smtp-Source: ADUXVKIygN10TlPsYBwG2ksR2lyzFEm/k0ns6e9KfsPwAaPwT/o6Vu2zCjJf6g54t0yQhD4fsJTE X-Received: by 2002:a17:902:e093:: with SMTP id cb19-v6mr2738883plb.189.1528977879142; Thu, 14 Jun 2018 05:04:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1528977879; cv=none; d=google.com; s=arc-20160816; b=d8cLwDok57rRC2LJDYkChNvHd2PK0ENdViNnNDijO/Y6TXpsAzFmC0oag8TiWv9PJN kO0upY5dwPFE4IYWqHBp/LoymU/T1HKjCHARZvatfnu7YgL0n5YFU+4I17pD6O/bkE4n 51VFEM8YmuLYPsNBnkv4g34+uysS1EDOJ9HWj9ZPr/4XI89eRMW+XG6rlMCrcHJIjYgM b6l2BUzNpw0pW/Yym0Uqg3iCgHc710EvKU3iV+BaIYrODLG6w8yPhHELLVzLOXN46ElY rfyE2gLpLzWUEk44Gsr/+roaz/M4WSH7bxtGOdHy7REA0INuPoAoM3DOs/ttO2hZEiPQ D3iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :references:in-reply-to:mime-version:dkim-signature :arc-authentication-results; bh=sg7HKxfXRo/VTbEiu/enFDOPQNn6T2lzzzBKhiAWPIw=; b=WOBSMbjJ3pVSmn0JbLaJ3O1dasAZ5fRBamNQPQJRMbbXHfWQr3mSmQpQhE+As0fXFy EIM8ToFB3pIkGYTXXUSWkKMMDOIqy6vM+aduBN3DGxXK+VTRe3F7I5UjeeZ80yF8z9H0 iE2RGsIOJjRC4fM4lq1kBeEvT7BJn8y8NpMtgTAsSJJ24DLC3H6kXaquNlBVsxRIWiUY BrSHkEZJN57lNdcgPjONY3TVP/YvjuHCzi2gscIOZKXkbGgzBBhaf+LqG68W+C8khplM h6dCQ0baXnTmPIdFsPnoM0UBKeGznOmODF2w0fPB8JV5Xpvwi1ibn06WLGB66rPOczbO W2Lw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NoCz+qjB; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s9-v6si5228240plp.182.2018.06.14.05.04.24; Thu, 14 Jun 2018 05:04:39 -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=@gmail.com header.s=20161025 header.b=NoCz+qjB; 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=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S935985AbeFNMDD (ORCPT + 99 others); Thu, 14 Jun 2018 08:03:03 -0400 Received: from mail-vk0-f67.google.com ([209.85.213.67]:37741 "EHLO mail-vk0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755155AbeFNMDC (ORCPT ); Thu, 14 Jun 2018 08:03:02 -0400 Received: by mail-vk0-f67.google.com with SMTP id w8-v6so3497089vkh.4 for ; Thu, 14 Jun 2018 05:03:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=sg7HKxfXRo/VTbEiu/enFDOPQNn6T2lzzzBKhiAWPIw=; b=NoCz+qjBIkRaAt+Pudhi9zCgNSTa5k+OlhQUIWmnjNP5pXu7tcZ62ibdk2hpQHk5Uc IrQSMBf8x3la+wSF5gPHS/u9CLggUkt9ER7RPtnXQuuXf93G6QwhUe22E4acRTsS6pDS jTijD53KwCg273e6l3OAW3tknknA31yZ+zy6jeAmr9rZsP5QfsQGjeHsaDDVEV1DZ3sY fE7mLEXQDdPg0LeOSoFMGO5vzuum299joA6wGRK3T/MMzHRolVcJfC7RHyPzD3Xl6d7E vhimKOEW9oMP1Zf77GiDvJalGYR3HMuUsbctuQkPyYIzYLhEFlZQnqUvVT+WQuMZ6nzf S9ig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=sg7HKxfXRo/VTbEiu/enFDOPQNn6T2lzzzBKhiAWPIw=; b=KWXVIJJuFDp8iYT7g28Lu+27ITwGCIlXepsZI/kXEn0xYY2AVqToJx2Zs5/2oiXbU5 NLoijk1UzQ/2GtrznfmV1vwDMZw34cLEdVjjlmXfnBszvxlg9ADEXzPCG14+K9uY9RUF t4HBv8xffFD144Sx+edBARq1dawd/IV4bEbdeyUokEVsFmfNaiQY9cpZliSidQzvUMYx xOSKLw16YmHoJBn4jqKNZjO2FH21CjROe138YYNbf1FBZUJlt2OPsa9vkoZonPIvS9aE Vq4Ua5QppzfGkXE/4TKaRpA5iSy/msOLlRutDBZG8tH3xBR5syyTepSigiv1UcwHMlE2 2dMg== X-Gm-Message-State: APt69E2sufbrRCKksnI+f2coGWAGIuKVcJWG39s+ivk5jTJhJDFAa9I6 Ge1ClczT+pB7+X/XeR2xERnCqcDz8xdPdfKg8ojQQw== X-Received: by 2002:a1f:8e0f:: with SMTP id q15-v6mr1428365vkd.161.1528977781400; Thu, 14 Jun 2018 05:03:01 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:a67:8b02:0:0:0:0:0 with HTTP; Thu, 14 Jun 2018 05:03:00 -0700 (PDT) In-Reply-To: <20180531144749.GA6828@yury-thinkpad> References: <20180531131914.44352-1-andriy.shevchenko@linux.intel.com> <20180531144749.GA6828@yury-thinkpad> From: Andy Shevchenko Date: Thu, 14 Jun 2018 15:03:00 +0300 Message-ID: Subject: Re: [PATCH v1] bitmap: Drop unnecessary 0 check for u32 array operations To: Yury Norov Cc: Andy Shevchenko , Andrew Morton , Linux Kernel Mailing List 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 On Thu, May 31, 2018 at 5:47 PM, Yury Norov wrote: > On Thu, May 31, 2018 at 04:19:14PM +0300, Andy Shevchenko wrote: >> The nbits == 0 is safe to be supplied to the function body, so, >> remove unnecessary checks in bitmap_to_arr32() and bitmap_from_arr32(). >> +void bitmap_from_arr32(unsigned long *bitmap, const u32 *buf, unsigned int nbits) > > This line is 81 characters length, and it will trigger checkpatch warning. > (But I'm OK with it.) I really don't care about ) at the end potentially not visible on the screen (who is using nice old hardware terminals? :-) ). > Acked-by: Yury Norov Thanks. -- With Best Regards, Andy Shevchenko