diff mbox series

smb: remove obsolete comment

Message ID 20230606153456.14454-1-jxh218@163.com
State New
Headers show
Series smb: remove obsolete comment | expand

Commit Message

jixianghua@xfusion.com June 6, 2023, 3:34 p.m. UTC
From: 鑫华 <jixianghua@xfusion.com>

Because do_gettimeofday has been removed and replaced by ktime_get_real_ts64,
So just remove the comment as it's not needed now.

Signed-off-by: 鑫华 <jixianghua@xfusion.com>
---
 fs/smb/client/transport.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Steve French June 6, 2023, 10:31 p.m. UTC | #1
tentatively merged into cifs-2.6.git for-next

On Tue, Jun 6, 2023 at 10:46 AM jixianghua@xfusion.com <jxh218@163.com> wrote:
>
> From: 鑫华 <jixianghua@xfusion.com>
>
> Because do_gettimeofday has been removed and replaced by ktime_get_real_ts64,
> So just remove the comment as it's not needed now.
>
> Signed-off-by: 鑫华 <jixianghua@xfusion.com>
> ---
>  fs/smb/client/transport.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/fs/smb/client/transport.c b/fs/smb/client/transport.c
> index 24bdd5f4d3bc..0474d0bba0a2 100644
> --- a/fs/smb/client/transport.c
> +++ b/fs/smb/client/transport.c
> @@ -55,7 +55,7 @@ alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
>         temp->pid = current->pid;
>         temp->command = cpu_to_le16(smb_buffer->Command);
>         cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command);
> -       /*      do_gettimeofday(&temp->when_sent);*/ /* easier to use jiffies */
> +       /* easier to use jiffies */
>         /* when mid allocated can be before when sent */
>         temp->when_alloc = jiffies;
>         temp->server = server;
> --
> 2.34.1
>
diff mbox series

Patch

diff --git a/fs/smb/client/transport.c b/fs/smb/client/transport.c
index 24bdd5f4d3bc..0474d0bba0a2 100644
--- a/fs/smb/client/transport.c
+++ b/fs/smb/client/transport.c
@@ -55,7 +55,7 @@  alloc_mid(const struct smb_hdr *smb_buffer, struct TCP_Server_Info *server)
 	temp->pid = current->pid;
 	temp->command = cpu_to_le16(smb_buffer->Command);
 	cifs_dbg(FYI, "For smb_command %d\n", smb_buffer->Command);
-	/*	do_gettimeofday(&temp->when_sent);*/ /* easier to use jiffies */
+	/* easier to use jiffies */
 	/* when mid allocated can be before when sent */
 	temp->when_alloc = jiffies;
 	temp->server = server;