lkml.org 
[lkml]   [2005]   [Mar]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH] get rid of a single else clause in cifsfs.c

Hi Steve,

Just a small patch on top of the other ones I sent you earlier for
cifsfs.c, I overlooked this trivial bit.
We can get rid of the else clause in a if statement. Doesn't change
anything code-wise, but shortens the file a bit and seems a bit cleaner
(at least to me) - apply or not as you please of course.


Signed-off-by: Jesper Juhl <juhl-lkml@dif.dk>

--- linux-2.6.12-rc1-mm3/fs/cifs/cifsfs.c.with_patch4 2005-03-25 18:03:49.000000000 +0100
+++ linux-2.6.12-rc1-mm3/fs/cifs/cifsfs.c 2005-03-26 03:41:29.000000000 +0100
@@ -96,9 +96,8 @@ static int cifs_read_super(struct super_
cifs_sb = CIFS_SB(sb);
if (cifs_sb == NULL)
return -ENOMEM;
- else
- memset(cifs_sb,0,sizeof(struct cifs_sb_info));

+ memset(cifs_sb,0,sizeof(struct cifs_sb_info));
rc = cifs_mount(sb, cifs_sb, data, devname);
if (rc) {
if (!silent)

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-04-06 13:30    [W:0.036 / U:1.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site