diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2006-09-21 11:31:58 +0200 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 10:47:43 +0200 |
commit | e6f8f108a19638d7c6535ab393a228ed9d4804a6 (patch) | |
tree | f8838be1d503e8b6b3edff009bd3e572ecb72da7 | |
parent | eb06ed8f4c2440558ebf465e8baeac6367d90201 (diff) | |
download | linux-3.10-e6f8f108a19638d7c6535ab393a228ed9d4804a6.tar.gz linux-3.10-e6f8f108a19638d7c6535ab393a228ed9d4804a6.tar.bz2 linux-3.10-e6f8f108a19638d7c6535ab393a228ed9d4804a6.zip |
[ALSA] sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values
sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values
Signed-off-by: Josef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Jaroslav Kysela <perex@suse.cz>
-rw-r--r-- | sound/core/info.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/core/info.c b/sound/core/info.c index 9663b6be9c3..e43662b33f1 100644 --- a/sound/core/info.c +++ b/sound/core/info.c @@ -175,15 +175,15 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) switch (entry->content) { case SNDRV_INFO_CONTENT_TEXT: switch (orig) { - case 0: /* SEEK_SET */ + case SEEK_SET: file->f_pos = offset; ret = file->f_pos; goto out; - case 1: /* SEEK_CUR */ + case SEEK_CUR: file->f_pos += offset; ret = file->f_pos; goto out; - case 2: /* SEEK_END */ + case SEEK_END: default: ret = -EINVAL; goto out; |