Merge "coresight: remove an unnecessary if statement which validates cpu id"
This commit is contained in:
commit
cfb19d6189
|
@ -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;
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in New Issue