提交 801089e6 编写于 作者: V Vasiliy Kulikov 提交者: Greg Kroah-Hartman

staging: intel_sst: use signed int for error codes

As retval stores error code, it should be signed int.
Signed-off-by: NVasiliy Kulikov <segooon@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 7915c0d4
......@@ -98,7 +98,7 @@ static int intel_sst_check_device(void)
*/
int intel_sst_open(struct inode *i_node, struct file *file_ptr)
{
unsigned int retval = intel_sst_check_device();
int retval = intel_sst_check_device();
if (retval)
return retval;
......@@ -137,7 +137,7 @@ int intel_sst_open(struct inode *i_node, struct file *file_ptr)
*/
int intel_sst_open_cntrl(struct inode *i_node, struct file *file_ptr)
{
unsigned int retval = intel_sst_check_device();
int retval = intel_sst_check_device();
if (retval)
return retval;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册