Merge "coresight: remove an unnecessary if statement which validates cpu id"

This commit is contained in:
Linux Build Service Account 2014-10-12 05:41:09 -07:00 committed by Gerrit - the friendly Code Review server
commit cfb19d6189
2 changed files with 0 additions and 4 deletions

View File

@ -1927,8 +1927,6 @@ int coresight_etm_get_funnel_port(int cpu)
{
struct coresight_platform_data *pdata;
if (cpu > num_possible_cpus())
return -EINVAL;
if (!etmdrvdata[cpu])
return -ENODEV;

View File

@ -2917,8 +2917,6 @@ int coresight_etm_get_funnel_port(int cpu)
{
struct coresight_platform_data *pdata;
if (cpu > num_possible_cpus())
return -EINVAL;
if (!etmdrvdata[cpu])
return -ENODEV;