Skip to content

Commit

Permalink
[ALSA] sound core: Use SEEK_{SET,CUR,END} instead of hardcoded values
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Josef 'Jeff' Sipek authored and Jaroslav Kysela committed Sep 23, 2006
1 parent eb06ed8 commit e6f8f10
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sound/core/info.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit e6f8f10

Please sign in to comment.