[PATCH][5/6] cifs: inode.c cleanup - cast

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Remove pointless cast (and fix a single space the previous patches missed).

Signed-off-by: Jesper Juhl <[email protected]>


--- linux-2.6.12-rc1-mm3/fs/cifs/inode.c.with_patch4	2005-03-26 14:18:22.000000000 +0100
+++ linux-2.6.12-rc1-mm3/fs/cifs/inode.c	2005-03-26 14:18:32.000000000 +0100
@@ -206,7 +206,7 @@ int cifs_get_inode_info(struct inode **p
 
 	/* if file info not passed in then get it from server */
 	if (pfindData == NULL) {
-		buf = kmalloc(sizeof(FILE_ALL_INFO),GFP_KERNEL);
+		buf = kmalloc(sizeof(FILE_ALL_INFO), GFP_KERNEL);
 		if (buf == NULL)
 			return -ENOMEM;
 		pfindData = (FILE_ALL_INFO *)buf;
@@ -417,8 +417,7 @@ int cifs_unlink(struct inode *inode, str
 		}
 	} else if (rc == -EACCES) {
 		/* try only if r/o attribute set in local lookup data? */
-		pinfo_buf = (FILE_BASIC_INFO *)kmalloc(sizeof(FILE_BASIC_INFO),
-						       GFP_KERNEL);
+		pinfo_buf = kmalloc(sizeof(FILE_BASIC_INFO), GFP_KERNEL);
 		if (pinfo_buf) {
 			memset(pinfo_buf, 0, sizeof(FILE_BASIC_INFO));
 			/* ATTRS set to normal clears r/o bit */

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

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux