From: Thomas Gleixner Date: Wed, 18 Mar 2009 08:03:19 +0000 (+0100) Subject: tracing: replace the crude (unsigned) -1 hackery X-Git-Tag: v2.6.30-rc1~2^2~22^3~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c7eea4c62ba090b7f4583c3d7337ea0019be900;p=pandora-kernel.git tracing: replace the crude (unsigned) -1 hackery Impact: cleanup The command line recorder uses (unsigned) -1 to mark non mapped entries in the pid to command line maps. The validity check is completely unintuitive: idx >= SAVED_CMDLINES There is no need for such casting games. Use a constant to mark unmapped entries and check for that constant to make the code readable and understandable. Signed-off-by: Thomas Gleixner Cc: Steven Rostedt Cc: Frederic Weisbecker LKML-Reference: Signed-off-by: Ingo Molnar --- Reading git-diff-tree failed