Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1577451

Re: [PATCH] perf/core: remove useless cast when comparing

Path csiph.com!news.redatomik.org!aioe.org!bofh.it!news.nic.it!robomod
From Peter Zijlstra <peterz@infradead.org>
Newsgroups linux.kernel
Subject Re: [PATCH] perf/core: remove useless cast when comparing
Date Thu, 09 Feb 2017 11:20:01 +0100
Message-ID <t8TZv-4SY-7@gated-at.bofh.it> (permalink)
References <t8SqJ-3R5-9@gated-at.bofh.it>
X-Original-To Mars Cheng <mars.cheng@mediatek.com>
MIME-Version 1.0
Content-Type text/plain; charset=us-ascii
Content-Disposition inline
User-Agent Mutt/1.5.23.1 (2014-03-12)
Sender robomod@news.nic.it
List-ID <linux-kernel.vger.kernel.org>
X-Mailing-List linux-kernel@vger.kernel.org
Approved robomod@news.nic.it
Lines 4
Organization linux.* mail to news gateway
X-Original-Cc Ingo Molnar <mingo@redhat.com>, CC Hwang <cc.hwang@mediatek.com>, Loda Chou <loda.chou@mediatek.com>, Miles Chen <miles.chen@mediatek.com>, Jades Shih <jades.shih@mediatek.com>, Yingjoe Chen <yingjoe.chen@mediatek.com>, My Chuang <my.chuang@mediatek.com>, linux-kernel@vger.kernel.org, wsd_upstream@mediatek.com
X-Original-Date Thu, 9 Feb 2017 11:11:26 +0100
X-Original-Message-ID <20170209101126.GA6500@twins.programming.kicks-ass.net>
X-Original-References <1486628746-23538-1-git-send-email-mars.cheng@mediatek.com>
X-Original-Sender linux-kernel-owner@vger.kernel.org
Xref csiph.com linux.kernel:1577451

Show key headers only | View raw


On Thu, Feb 09, 2017 at 04:25:46PM +0800, Mars Cheng wrote:
> since nr_cpu_ids and cpu are both int, remove the casting

Please as to learn C before playing. Consider negative numbers.

Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread


Thread

[PATCH] perf/core: remove useless cast when comparing Mars Cheng <mars.cheng@mediatek.com> - 2017-02-09 09:40 +0100
  Re: [PATCH] perf/core: remove useless cast when comparing Peter Zijlstra <peterz@infradead.org> - 2017-02-09 11:20 +0100

csiph-web