staging: intel_sst: use signed int for error codes
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 10 Oct 2010 17:28:43 +0000 (21:28 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 10 Oct 2010 18:25:00 +0000 (11:25 -0700)
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>
drivers/staging/intel_sst/intel_sst_app_interface.c

index 9f31dc5..baf0ddc 100644 (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;