]> Pileus Git - ~andy/linux/blobdiff - drivers/macintosh/nvram.c
cnic: Update version to 2.5.20 and copyright year.
[~andy/linux] / drivers / macintosh / nvram.c
index a271c8218d82b00c3311c3c77d26f135ce5791ec..f0e03e7937e31483540d1a910dd250eb14368dc2 100644 (file)
 static loff_t nvram_llseek(struct file *file, loff_t offset, int origin)
 {
        switch (origin) {
+       case 0:
+               break;
        case 1:
                offset += file->f_pos;
                break;
        case 2:
                offset += NVRAM_SIZE;
                break;
+       default:
+               offset = -1;
        }
        if (offset < 0)
                return -EINVAL;