diff options
author | Takashi Sakamoto <o-takashi@sakamocchi.jp> | 2014-11-28 10:59:10 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-11-29 14:02:48 -0500 |
commit | 81fc5ad51539e765cd470f1d0d9d0477d1c4c30c (patch) | |
tree | 428f1df51b289184230ad8dd709e0551d15baca1 /sound/firewire | |
parent | 50314663877b3c5f08b2573c0bb161b6a2c63c3e (diff) |
ALSA: dice: suppress checkpatch.pl warnings
The checkpatch.pl generates some warnings due to:
- C99 comment
- a line over 80 characters
- min() for parameters with different types
Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/firewire')
-rw-r--r-- | sound/firewire/dice.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/firewire/dice.c b/sound/firewire/dice.c index e3a04d69c853..72af110d0f98 100644 --- a/sound/firewire/dice.c +++ b/sound/firewire/dice.c | |||
@@ -133,7 +133,7 @@ static inline u64 global_address(struct dice *dice, unsigned int offset) | |||
133 | return DICE_PRIVATE_SPACE + dice->global_offset + offset; | 133 | return DICE_PRIVATE_SPACE + dice->global_offset + offset; |
134 | } | 134 | } |
135 | 135 | ||
136 | // TODO: rx index | 136 | /* TODO: rx index */ |
137 | static inline u64 rx_address(struct dice *dice, unsigned int offset) | 137 | static inline u64 rx_address(struct dice *dice, unsigned int offset) |
138 | { | 138 | { |
139 | return DICE_PRIVATE_SPACE + dice->rx_offset + offset; | 139 | return DICE_PRIVATE_SPACE + dice->rx_offset + offset; |
@@ -721,13 +721,14 @@ static long dice_hwdep_read(struct snd_hwdep *hwdep, char __user *buf, | |||
721 | event.lock_status.status = dice->dev_lock_count > 0; | 721 | event.lock_status.status = dice->dev_lock_count > 0; |
722 | dice->dev_lock_changed = false; | 722 | dice->dev_lock_changed = false; |
723 | 723 | ||
724 | count = min(count, (long)sizeof(event.lock_status)); | 724 | count = min_t(long, count, sizeof(event.lock_status)); |
725 | } else { | 725 | } else { |
726 | event.dice_notification.type = SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION; | 726 | event.dice_notification.type = |
727 | SNDRV_FIREWIRE_EVENT_DICE_NOTIFICATION; | ||
727 | event.dice_notification.notification = dice->notification_bits; | 728 | event.dice_notification.notification = dice->notification_bits; |
728 | dice->notification_bits = 0; | 729 | dice->notification_bits = 0; |
729 | 730 | ||
730 | count = min(count, (long)sizeof(event.dice_notification)); | 731 | count = min_t(long, count, sizeof(event.dice_notification)); |
731 | } | 732 | } |
732 | 733 | ||
733 | spin_unlock_irq(&dice->lock); | 734 | spin_unlock_irq(&dice->lock); |