|
@@ -1585,7 +1585,7 @@ int ldebugfs_seq_create(struct dentry *parent, const char *name,
|
|
|
struct dentry *entry;
|
|
|
|
|
|
/* Disallow secretly (un)writable entries. */
|
|
|
- LASSERT((seq_fops->write == NULL) == ((mode & 0222) == 0));
|
|
|
+ LASSERT((!seq_fops->write) == ((mode & 0222) == 0));
|
|
|
|
|
|
entry = debugfs_create_file(name, mode, parent, data, seq_fops);
|
|
|
if (IS_ERR_OR_NULL(entry))
|