mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
don't open-code file_inode()
Signed-off-by: Al Viro <[email protected]>
This commit is contained in:
parent
e5517c2a5a
commit
450630975d
18 changed files with 40 additions and 46 deletions
|
|
@ -143,7 +143,7 @@ static ssize_t target_core_item_dbroot_store(struct config_item *item,
|
|||
pr_err("db_root: cannot open: %s\n", db_root_stage);
|
||||
return -EINVAL;
|
||||
}
|
||||
if (!S_ISDIR(fp->f_inode->i_mode)) {
|
||||
if (!S_ISDIR(file_inode(fp)->i_mode)) {
|
||||
filp_close(fp, 0);
|
||||
mutex_unlock(&g_tf_lock);
|
||||
pr_err("db_root: not a directory: %s\n", db_root_stage);
|
||||
|
|
|
|||
Loading…
Reference in a new issue