Linux CIFS filesystem development
 help / color / mirror / Atom feed
* [PATCH] cifs: remove redundant variable assignment
@ 2024-03-13 15:00 Bharath SM
  2024-03-14  2:49 ` Steve French
  0 siblings, 1 reply; 3+ messages in thread
From: Bharath SM @ 2024-03-13 15:00 UTC (permalink / raw)
  To: smfrench, linux-cifs, bharathsm

This removes an unnecessary variable assignment. The assigned
value will be overwritten by cifs_fattr_to_inode before it
is accessed, making the line redundant.

Signed-off-by: Bharath SM <bharathsm@microsoft.com>
---
 fs/smb/client/inode.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/fs/smb/client/inode.c b/fs/smb/client/inode.c
index 00aae4515a09..50e939234a8e 100644
--- a/fs/smb/client/inode.c
+++ b/fs/smb/client/inode.c
@@ -400,7 +400,6 @@ cifs_get_file_info_unix(struct file *filp)
 		cifs_unix_basic_to_fattr(&fattr, &find_data, cifs_sb);
 	} else if (rc == -EREMOTE) {
 		cifs_create_junction_fattr(&fattr, inode->i_sb);
-		rc = 0;
 	} else
 		goto cifs_gfiunix_out;
 
@@ -852,7 +851,6 @@ cifs_get_file_info(struct file *filp)
 		 * for now, just skip revalidating and mark inode for
 		 * immediate reval.
 		 */
-		rc = 0;
 		CIFS_I(inode)->time = 0;
 		goto cgfi_exit;
 	default:
-- 
2.34.1


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

end of thread, other threads:[~2024-03-14 18:14 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-13 15:00 [PATCH] cifs: remove redundant variable assignment Bharath SM
2024-03-14  2:49 ` Steve French
2024-03-14 18:14   ` Bharath SM

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