mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] Ban register_filesystem(NULL);
@ 2006-08-25  1:05 Alexey Dobriyan
  2006-08-25 14:05 ` Arjan van de Ven
  0 siblings, 1 reply; 2+ messages in thread
From: Alexey Dobriyan @ 2006-08-25  1:05 UTC (permalink / raw)
  To: Andrew Morton; +Cc: linux-fsdevel, linux-kernel

Everyone passes valid pointer there.

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
---

 fs/filesystems.c |    2 --
 1 file changed, 2 deletions(-)

--- a/fs/filesystems.c
+++ b/fs/filesystems.c
@@ -69,8 +69,6 @@ int register_filesystem(struct file_syst
 	int res = 0;
 	struct file_system_type ** p;
 
-	if (!fs)
-		return -EINVAL;
 	if (fs->next)
 		return -EBUSY;
 	INIT_LIST_HEAD(&fs->fs_supers);


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH] Ban register_filesystem(NULL);
  2006-08-25  1:05 [PATCH] Ban register_filesystem(NULL); Alexey Dobriyan
@ 2006-08-25 14:05 ` Arjan van de Ven
  0 siblings, 0 replies; 2+ messages in thread
From: Arjan van de Ven @ 2006-08-25 14:05 UTC (permalink / raw)
  To: Alexey Dobriyan; +Cc: Andrew Morton, linux-fsdevel, linux-kernel

On Fri, 2006-08-25 at 05:05 +0400, Alexey Dobriyan wrote:
> Everyone passes valid pointer there.

Hi,

want to add a nonnull attribute to the prototype so that gcc will
enforce this?

Greetings,
   Arjan van de Ven
-- 
if you want to mail me at work (you don't), use arjan (at) linux.intel.com


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-25 14:05 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-25  1:05 [PATCH] Ban register_filesystem(NULL); Alexey Dobriyan
2006-08-25 14:05 ` Arjan van de Ven

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®