Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/9] ALSA: pcm_params: Remove unused add/sub functions
@ 2014-12-29 18:41 Lars-Peter Clausen
  2014-12-29 18:41 ` [PATCH 2/9] ALSA: pcm: Remove unused SNDRV_PCM_IOCTL1_{FALSE, TRUE} defines Lars-Peter Clausen
                   ` (8 more replies)
  0 siblings, 9 replies; 10+ messages in thread
From: Lars-Peter Clausen @ 2014-12-29 18:41 UTC (permalink / raw)
  To: Jaroslav Kysela, Takashi Iwai; +Cc: alsa-devel, Lars-Peter Clausen

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>
---
 include/sound/pcm_params.h | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/include/sound/pcm_params.h b/include/sound/pcm_params.h
index 6b1c78f..15760f5 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
 		i1->max == i2->max && i1->openmax == i2->openmax;
 }
 
-static inline unsigned int add(unsigned int a, unsigned int b)
-{
-	if (a >= UINT_MAX - b)
-		return UINT_MAX;
-	return a + b;
-}
-
-static inline unsigned int sub(unsigned int a, unsigned int b)
-{
-	if (a > b)
-		return a - b;
-	return 0;
-}
-
 #define params_access(p) ((__force snd_pcm_access_t)\
 		snd_mask_min(hw_param_mask_c((p), SNDRV_PCM_HW_PARAM_ACCESS)))
 #define params_format(p) ((__force snd_pcm_format_t)\
-- 
1.8.0

^ permalink raw reply related	[flat|nested] 10+ messages in thread

end of thread, other threads:[~2014-12-30 15:49 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-12-29 18:41 [PATCH 1/9] ALSA: pcm_params: Remove unused add/sub functions Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 2/9] ALSA: pcm: Remove unused SNDRV_PCM_IOCTL1_{FALSE, TRUE} defines Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 3/9] ALSA: pcm: Fix kerneldoc for params_*() functions Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 4/9] ALSA: pcm: Convert params_* mask helpers to static inline functions Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 5/9] ALSA: pcm: Add kernel doc for params_*() functions Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 6/9] ALSA: pcm: Simplify params_period_bytes() Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 7/9] ALSA: pcm: Use __ffs() instead of ffs() in snd_mask_min() Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 8/9] ALSA: snd_pcm_oss_period_size: Use round{up, down}_pow_of_two() Lars-Peter Clausen
2014-12-29 18:41 ` [PATCH 9/9] ALSA: pcm: Replace custom ld2 function with __fls Lars-Peter Clausen
2014-12-30 15:49 ` [PATCH 1/9] ALSA: pcm_params: Remove unused add/sub functions Takashi Iwai

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox