Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932601AbdIFOdc (ORCPT ); Wed, 6 Sep 2017 10:33:32 -0400 Received: from mail-qt0-f180.google.com ([209.85.216.180]:34706 "EHLO mail-qt0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932581AbdIFOdZ (ORCPT ); Wed, 6 Sep 2017 10:33:25 -0400 X-Google-Smtp-Source: AOwi7QCx+fYnuNat0KGkLDWfil6rV/K2HAU6EIv40moZ3rBowuYTedRZ3Q6i74S5OWmnQUwjdBpCLw== Date: Wed, 6 Sep 2017 07:33:20 -0700 From: Tejun Heo To: zijun_hu Cc: Andrew Morton , jiangshanlai@gmail.com, linux-kernel@vger.kernel.org, zijun_hu@htc.com Subject: Re: [PATCH 1/1] workqueue: use type int instead of bool to index array Message-ID: <20170906143320.GK1774378@devbig577.frc2.facebook.com> References: <59AF6CB6.4090609@zoho.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <59AF6CB6.4090609@zoho.com> User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 392 Lines: 17 Hello, On Wed, Sep 06, 2017 at 11:34:14AM +0800, zijun_hu wrote: > From: zijun_hu > > type bool is used to index three arrays in alloc_and_link_pwqs() > it doesn't look like conventional. > > it is fixed by using type int to index the relevant arrays. bool is a uint type which can be either 0 or 1. I don't see what the benefit of this patch is.q Thanks. -- tejun