summaryrefslogtreecommitdiff
path: root/timer.c
blob: c25d5b201ea7a032c8344aff535d503df750e724 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <unistd.h>
#include <sys/time.h>

#include "timer.h"

void set_itimer_interval_value(struct itimerval *itimer, unsigned long sec,
			       unsigned long usec)
{
	itimer->it_interval.tv_sec = sec;
	itimer->it_interval.tv_usec = usec;

	itimer->it_value.tv_sec = sec;
	itimer->it_value.tv_usec = usec;
}

int get_user_hz(void)
{
	return sysconf(_SC_CLK_TCK);
}
='commit-info'> authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>2016-08-11 14:40:04 +0100 committerMark Brown <broonie@kernel.org>2016-08-11 15:01:02 +0100 commitfa54aade5338937146bb6b8af93d2c27f6787ae1 (patch) tree2339610610678087bb491cf35c61a8b708fc0689 /sound/soc parent29b4817d4018df78086157ea3a55c1d9424a7cfc (diff)
ASoC: wm2000: Fix return of uninitialised varible
Anything that sets ret in wm2000_anc_transition will have immediately returned anyway as such we will always return an uninitialised ret at the bottom of the function. Simply replace the return with a return 0; Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')