From: Taeung Song Date: Wed, 24 Sep 2014 01:33:37 +0000 (+0900) Subject: perf tools: Modify error code for when perf_session__new() fails X-Git-Tag: fixes-against-v3.18-rc2~100^2~3^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52e0283497ccb1e675d56c9499cc2cc5ec271094;p=pandora-kernel.git perf tools: Modify error code for when perf_session__new() fails Because perf_session__new() can fail for more reasons than just ENOMEM, modify error code(ENOMEM or EINVAL) to -1. Signed-off-by: Taeung Song Acked-by: Jiri Olsa Acked-by: Namhyung Kim Cc: Jiri Olsa Cc: Namhyung Kim Link: http://lkml.kernel.org/r/1411522417-9917-1-git-send-email-treeze.taeung@gmail.com Signed-off-by: Arnaldo Carvalho de Melo --- Reading git-diff-tree failed