Skip to content

Commit

Permalink
staging: intel_sst: use signed int for error codes
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vasiliy Kulikov authored and Greg Kroah-Hartman committed Oct 10, 2010
1 parent 7915c0d commit 801089e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/staging/intel_sst/intel_sst_app_interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit 801089e

Please sign in to comment.