diff options
author | Josef 'Jeff' Sipek <jeffpc@josefsipek.net> | 2006-09-21 05:31:58 -0400 |
---|---|---|
committer | Jaroslav Kysela <perex@suse.cz> | 2006-09-23 04:47:43 -0400 |
commit | e6f8f108a19638d7c6535ab393a228ed9d4804a6 (patch) | |
tree | f8838be1d503e8b6b3edff009bd3e572ecb72da7 /sound/core | |
parent | eb06ed8f4c2440558ebf465e8baeac6367d90201 (diff) |
[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>
Diffstat (limited to 'sound/core')
-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 9663b6be9c3a..e43662b33f16 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) | |||
175 | switch (entry->content) { | 175 | switch (entry->content) { |
176 | case SNDRV_INFO_CONTENT_TEXT: | 176 | case SNDRV_INFO_CONTENT_TEXT: |
177 | switch (orig) { | 177 | switch (orig) { |
178 | case 0: /* SEEK_SET */ | 178 | case SEEK_SET: |
179 | file->f_pos = offset; | 179 | file->f_pos = offset; |
180 | ret = file->f_pos; | 180 | ret = file->f_pos; |
181 | goto out; | 181 | goto out; |
182 | case 1: /* SEEK_CUR */ | 182 | case SEEK_CUR: |
183 | file->f_pos += offset; | 183 | file->f_pos += offset; |
184 | ret = file->f_pos; | 184 | ret = file->f_pos; |
185 | goto out; | 185 | goto out; |
186 | case 2: /* SEEK_END */ | 186 | case SEEK_END: |
187 | default: | 187 | default: |
188 | ret = -EINVAL; | 188 | ret = -EINVAL; |
189 | goto out; | 189 | goto out; |