mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 03:36:19 +00:00
[ALSA] opl4: Use SEEK_{SET,CUR,END} instead of hardcoded values
opl4: 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>
This commit is contained in:
parent
e6f8f108a1
commit
dd47a33806
1 changed files with 3 additions and 3 deletions
|
@ -105,13 +105,13 @@ static long long snd_opl4_mem_proc_llseek(struct snd_info_entry *entry, void *fi
|
|||
struct file *file, long long offset, int orig)
|
||||
{
|
||||
switch (orig) {
|
||||
case 0: /* SEEK_SET */
|
||||
case SEEK_SET:
|
||||
file->f_pos = offset;
|
||||
break;
|
||||
case 1: /* SEEK_CUR */
|
||||
case SEEK_CUR:
|
||||
file->f_pos += offset;
|
||||
break;
|
||||
case 2: /* SEEK_END, offset is negative */
|
||||
case SEEK_END: /* offset is negative */
|
||||
file->f_pos = entry->size + offset;
|
||||
break;
|
||||
default:
|
||||
|
|
Loading…
Reference in a new issue