staging: intel_sst: use signed int for error codes

As retval stores error code, it should be signed int.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
Vasiliy Kulikov 2010-10-10 21:28:43 +04:00 committed by Greg Kroah-Hartman
parent 7915c0d4d2
commit 801089e68e

View file

@ -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;