Commit e6f8f108 authored by Josef 'Jeff' Sipek's avatar Josef 'Jeff' Sipek Committed by Jaroslav Kysela

[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: default avatarJosef 'Jeff' Sipek <jeffpc@josefsipek.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
Signed-off-by: default avatarJaroslav Kysela <perex@suse.cz>
parent eb06ed8f
...@@ -175,15 +175,15 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig) ...@@ -175,15 +175,15 @@ static loff_t snd_info_entry_llseek(struct file *file, loff_t offset, int orig)
switch (entry->content) { switch (entry->content) {
case SNDRV_INFO_CONTENT_TEXT: case SNDRV_INFO_CONTENT_TEXT:
switch (orig) { switch (orig) {
case 0: /* SEEK_SET */ case SEEK_SET:
file->f_pos = offset; file->f_pos = offset;
ret = file->f_pos; ret = file->f_pos;
goto out; goto out;
case 1: /* SEEK_CUR */ case SEEK_CUR:
file->f_pos += offset; file->f_pos += offset;
ret = file->f_pos; ret = file->f_pos;
goto out; goto out;
case 2: /* SEEK_END */ case SEEK_END:
default: default:
ret = -EINVAL; ret = -EINVAL;
goto out; goto out;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment