[PATCH] staging: intel_sst: use signed int for error codes

From: Vasiliy Kulikov
Date: Sun Oct 10 2010 - 13:28:56 EST


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

Signed-off-by: Vasiliy Kulikov <segooon@xxxxxxxxx>
---
Compile tested.

.../staging/intel_sst/intel_sst_app_interface.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/drivers/staging/intel_sst/intel_sst_app_interface.c b/drivers/staging/intel_sst/intel_sst_app_interface.c
index 9f31dc5..baf0ddc 100644
--- a/drivers/staging/intel_sst/intel_sst_app_interface.c
+++ b/drivers/staging/intel_sst/intel_sst_app_interface.c
@@ -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;

--
1.7.0.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/