1
0

file->f_op is never NULL...

Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Este cometimento está contido em:
Al Viro
2013-09-22 16:27:52 -04:00
ascendente 22bd002ee7
cometimento 72c2d53192
29 ficheiros modificados com 74 adições e 97 eliminações

Ver ficheiro

@@ -575,7 +575,7 @@ static int alloc_device(struct nandsim *ns)
cfile = filp_open(cache_file, O_CREAT | O_RDWR | O_LARGEFILE, 0600);
if (IS_ERR(cfile))
return PTR_ERR(cfile);
if (!cfile->f_op || (!cfile->f_op->read && !cfile->f_op->aio_read)) {
if (!cfile->f_op->read && !cfile->f_op->aio_read) {
NS_ERR("alloc_device: cache file not readable\n");
err = -EINVAL;
goto err_close;