diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2014-12-29 13:41:38 -0500 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2014-12-30 10:41:54 -0500 |
commit | 26c0d8a415e5c4a01faf24165ec9dea821f6a908 (patch) | |
tree | 24a0d357a7d435193e04298085152cbc33193cef | |
parent | 62f64a880af2e82d1b41cb02cb43b88d30413993 (diff) |
ALSA: pcm_params: Remove unused add/sub functions
Those two functions are not used anywhere and also their name is a bit to
generic to be in a global header, so remove them.
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | include/sound/pcm_params.h | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h index 6b1c78f05fab..15760f5f98ee 100644 --- a/include/sound/pcm_params.h +++ b/include/sound/pcm_params.h | |||
@@ -325,20 +325,6 @@ static inline int snd_interval_eq(const struct snd_interval *i1, const struct sn | |||
325 | i1->max == i2->max && i1->openmax == i2->openmax; | 325 | i1->max == i2->max && i1->openmax == i2->openmax; |
326 | } | 326 | } |
327 | 327 | ||
328 | static inline unsigned int add(unsigned int a, unsigned int b) | ||
329 | { | ||
330 | if (a >= UINT_MAX - b) | ||
331 | return UINT_MAX; | ||
332 | return a + b; | ||
333 | } | ||
334 | |||
335 | static inline unsigned int sub(unsigned int a, unsigned int b) | ||
336 | { | ||
337 | if (a > b) | ||
338 | return a - b; | ||
339 | return 0; | ||
340 | } | ||
341 | |||
342 | #define params_access(p) ((__force snd_pcm_access_t)\ | 328 | #define params_access(p) ((__force snd_pcm_access_t)\ |
343 | snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_ACCESS))) | 329 | snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_ACCESS))) |
344 | #define params_format(p) ((__force snd_pcm_format_t)\ | 330 | #define params_format(p) ((__force snd_pcm_format_t)\ |