Blackfin arch: fix bug - kernel build fails with undefined reference to pm_overflow_h...
[firefly-linux-kernel-4.4.55.git] / fs / stat.c
index 7c46fbeb8b762e0f125a594a6fd27747ff160c55..7e12a6f827954bbd5fcdd7c1be9d02918ccef75a 100644 (file)
--- a/fs/stat.c
+++ b/fs/stat.c
@@ -305,7 +305,7 @@ asmlinkage long sys_readlinkat(int dfd, const char __user *pathname,
                struct inode *inode = path.dentry->d_inode;
 
                error = -EINVAL;
-               if (inode->i_op && inode->i_op->readlink) {
+               if (inode->i_op->readlink) {
                        error = security_inode_readlink(path.dentry);
                        if (!error) {
                                touch_atime(path.mnt, path.dentry);