Skip to contentSkip to conversation

staging: intel_sst: use signed int for error codes

PATCH In review Vasiliy Kulikov 2 participants 2 messages Oct 10, 2010 – Oct 13, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: intel_sst: use signed int for error codes

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

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