stm class: Use a signed return type for stm_find_master_chan
authorLucas Tanure <tanure@linux.com>
Mon, 15 Feb 2016 17:11:51 +0000 (19:11 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 20 Feb 2016 22:09:14 +0000 (14:09 -0800)
commitf45f40ad65336699757af948b81414c5999f1d48
treebd96d36e9dc9d200a31ed2233925b693b5f2c3b4
parent396ec3dea3d82d0a32906efe9803a8ef2647df51
stm class: Use a signed return type for stm_find_master_chan

The return type "unsigned int" was used by the stm_find_master_chan function
despite of the aspect that it will eventually return a negative error code.

Done with the help of Coccinelle.

Signed-off-by: Lucas Tanure <tanure@linux.com>
Signed-off-by: Alexander Shishkin <alexander.shishkin@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwtracing/stm/core.c