diff options
author | Hannes Eder <hannes@hanneseder.net> | 2009-02-25 16:29:29 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2009-02-26 03:55:17 -0500 |
commit | 5d44aa4c7322e0cda6d71cc3f0dffaceea0daae5 (patch) | |
tree | 66b87d15c67b7cff901d2c17eb3d0e481bab2198 /sound/oss | |
parent | eca985d28e1a8092ba2686ec5485fd688df5cfb3 (diff) |
sound/oss: fix sparse warnings: different signedness
Impact: Change signature of 'set_volume_stereo' and 'set_volume_mono'.
Fix this sparse warnings:
sound/oss/pss.c:545:42: warning: incorrect type in argument 2 (different signedness)
sound/oss/pss.c:546:42: warning: incorrect type in argument 3 (different signedness)
sound/oss/pss.c:554:59: warning: incorrect type in argument 2 (different signedness)
sound/oss/pss.c:560:59: warning: incorrect type in argument 2 (different signedness)
sound/oss/pss.c:566:59: warning: incorrect type in argument 2 (different signedness)
Signed-off-by: Hannes Eder <hannes@hanneseder.net>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/oss')
-rw-r--r-- | sound/oss/pss.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/oss/pss.c b/sound/oss/pss.c index 16ed06950dc1..16517a5a1301 100644 --- a/sound/oss/pss.c +++ b/sound/oss/pss.c | |||
@@ -457,10 +457,9 @@ static void pss_mixer_reset(pss_confdata *devc) | |||
457 | } | 457 | } |
458 | } | 458 | } |
459 | 459 | ||
460 | static int set_volume_mono(unsigned __user *p, int *aleft) | 460 | static int set_volume_mono(unsigned __user *p, unsigned int *aleft) |
461 | { | 461 | { |
462 | int left; | 462 | unsigned int left, volume; |
463 | unsigned volume; | ||
464 | if (get_user(volume, p)) | 463 | if (get_user(volume, p)) |
465 | return -EFAULT; | 464 | return -EFAULT; |
466 | 465 | ||
@@ -471,10 +470,11 @@ static int set_volume_mono(unsigned __user *p, int *aleft) | |||
471 | return 0; | 470 | return 0; |
472 | } | 471 | } |
473 | 472 | ||
474 | static int set_volume_stereo(unsigned __user *p, int *aleft, int *aright) | 473 | static int set_volume_stereo(unsigned __user *p, |
474 | unsigned int *aleft, | ||
475 | unsigned int *aright) | ||
475 | { | 476 | { |
476 | int left, right; | 477 | unsigned int left, right, volume; |
477 | unsigned volume; | ||
478 | if (get_user(volume, p)) | 478 | if (get_user(volume, p)) |
479 | return -EFAULT; | 479 | return -EFAULT; |
480 | 480 | ||