staging: intel_sst: use signed int for error codes
Subsystems (2)
PATCH 1/1 staging: intel_sst: use signed int for error codes
As retval stores error code, it should be signed int.
Signed-off-by Vasiliy Kulikov <[email protected]>
---
Compile tested.
.../staging/intel_sst/intel_sst_app_interface.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-)
drivers/staging/intel_sst/intel_sst_app_interface.c +2 -2
@@ -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;
Signature · 1 line
1.7.0.4
Quoted 3 lines · On Sun, 10 Oct 2010 21:28:43 +0400 Vasiliy Kulikov <[email protected]> wrote:
As retval stores error code, it should be signed int.
Signed-off-by Vasiliy Kulikov <[email protected]>
Acked-by Alan Cox <[email protected]>