cifs: Get rid of unneeded conditional in the smb2_get_aead_req()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 20 Jan 2023 12:08:57 +0000 (14:08 +0200)
committerSteve French <stfrench@microsoft.com>
Mon, 20 Feb 2023 17:48:47 +0000 (11:48 -0600)
commitd4fba63fe1f78dba749cf7aa04c1dff4b8666eb1
tree243279645b0c5ccd640f9dbe5fd30ad803d44c04
parent05844bd661d9fd478df1175b6639bf2d9398becb
cifs: Get rid of unneeded conditional in the smb2_get_aead_req()

In the smb2_get_aead_req() the skip variable is used only for
the very first iteration of the two nested loops, which means
it's basically in invariant to those loops. Hence, instead of
using conditional on each iteration, unconditionally assign
the 'skip' variable before the loops and at the end of the
inner loop.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Reviewed-by: Paulo Alcantara (SUSE) <pc@cjr.nz>
Reviewed-by: David Howells <dhowells@redhat.com>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smb2ops.c