lkml.org 
[lkml]   [2017]   [Sep]   [6]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/1] workqueue: use type int instead of bool to index array
Hello,

On Wed, Sep 06, 2017 at 11:34:14AM +0800, zijun_hu wrote:
> From: zijun_hu <zijun_hu@htc.com>
>
> 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

\
 
 \ /
  Last update: 2017-09-06 16:34    [W:0.042 / U:0.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site