Eric Biggers <ebiggers@xxxxxxxxxx> writes: > fs/smb/common/cifs_arc4.c has an implementation of ARC4, but a copy of > this same code is also present in lib/crypto/arc4.c to serve the other > users of this legacy algorithm in the kernel. Remove the duplicate > implementation in fs/smb/, which seems to have been added because of a > misunderstanding, and just use the lib/crypto/ one. > > Signed-off-by: Eric Biggers <ebiggers@xxxxxxxxxx> > --- > fs/smb/client/Kconfig | 1 + > fs/smb/client/cifsencrypt.c | 8 ++-- > fs/smb/common/Makefile | 1 - > fs/smb/common/arc4.h | 23 ------------ > fs/smb/common/cifs_arc4.c | 75 ------------------------------------- > fs/smb/server/Kconfig | 1 + > fs/smb/server/auth.c | 9 ++--- > 7 files changed, 10 insertions(+), 108 deletions(-) > delete mode 100644 fs/smb/common/arc4.h > delete mode 100644 fs/smb/common/cifs_arc4.c Reviewed-by: Paulo Alcantara (Red Hat) <pc@xxxxxxxxxxxxx>