X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=drivers%2Fchar%2Fcrash.c;h=04de081a3b0e01d802c408d743993ce6de9e1bd2;hb=43bc926fffd92024b46cafaf7350d669ba9ca884;hp=43cc96f3868a133aec3b306fa59485c6c53fbe05;hpb=cee37fe97739d85991964371c1f3a745c00dd236;p=linux-2.6.git diff --git a/drivers/char/crash.c b/drivers/char/crash.c index 43cc96f38..04de081a3 100644 --- a/drivers/char/crash.c +++ b/drivers/char/crash.c @@ -43,16 +43,16 @@ static loff_t crash_llseek(struct file * file, loff_t offset, int orig) { - switch (orig) { - case 0: - file->f_pos = offset; - return file->f_pos; - case 1: - file->f_pos += offset; - return file->f_pos; - default: - return -EINVAL; - } + switch (orig) { + case 0: + file->f_pos = offset; + return file->f_pos; + case 1: + file->f_pos += offset; + return file->f_pos; + default: + return -EINVAL; + } } /* @@ -74,23 +74,23 @@ crash_read(struct file *file, char *buf, size_t count, loff_t *poff) vaddr = map_virtual(offset, &page); if (!vaddr) - return -EFAULT; + return -EFAULT; - if (copy_to_user(buf, vaddr, count)) { + if (copy_to_user(buf, vaddr, count)) { unmap_virtual(page); return -EFAULT; } unmap_virtual(page); read = count; - *poff += read; - return read; + *poff += read; + return read; } static struct file_operations crash_fops = { - owner: THIS_MODULE, - llseek: crash_llseek, - read: crash_read, + .owner = THIS_MODULE, + .llseek = crash_llseek, + .read = crash_read, }; static struct miscdevice crash_dev = {