Code Review
/
kvmfornfv.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
To modify Ixia port numbers and IP in pod.yaml
[kvmfornfv.git]
/
kernel
/
sound
/
sound_firmware.c
diff --git
a/kernel/sound/sound_firmware.c
b/kernel/sound/sound_firmware.c
index
b155137
..
0263476
100644
(file)
--- a/
kernel/sound/sound_firmware.c
+++ b/
kernel/sound/sound_firmware.c
@@
-12,7
+12,6
@@
static int do_mod_firmware_load(const char *fn, char **fp)
struct file* filp;
long l;
char *dp;
struct file* filp;
long l;
char *dp;
- loff_t pos;
filp = filp_open(fn, 0, 0);
if (IS_ERR(filp))
filp = filp_open(fn, 0, 0);
if (IS_ERR(filp))
@@
-34,8
+33,7
@@
static int do_mod_firmware_load(const char *fn, char **fp)
fput(filp);
return 0;
}
fput(filp);
return 0;
}
- pos = 0;
- if (vfs_read(filp, dp, l, &pos) != l)
+ if (kernel_read(filp, 0, dp, l) != l)
{
printk(KERN_INFO "Failed to read '%s'.\n", fn);
vfree(dp);
{
printk(KERN_INFO "Failed to read '%s'.\n", fn);
vfree(dp);