Message ID | e7b45a71-c973-4672-92b4-490864fdbe26@p183 (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | smb: client: delete "true", "false" defines | expand |
merged into cifs-2.6.git for-next On Tue, Jan 23, 2024 at 4:40 AM Alexey Dobriyan <adobriyan@gmail.com> wrote: > > Kernel has its own official true/false definitions. > > The defines aren't even used in this file. > > Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> > --- > > fs/smb/client/smbencrypt.c | 7 ------- > 1 file changed, 7 deletions(-) > > --- a/fs/smb/client/smbencrypt.c > +++ b/fs/smb/client/smbencrypt.c > @@ -26,13 +26,6 @@ > #include "cifsproto.h" > #include "../common/md4.h" > > -#ifndef false > -#define false 0 > -#endif > -#ifndef true > -#define true 1 > -#endif > - > /* following came from the other byteorder.h to avoid include conflicts */ > #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) > #define SSVALX(buf,pos,val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8) >
--- a/fs/smb/client/smbencrypt.c +++ b/fs/smb/client/smbencrypt.c @@ -26,13 +26,6 @@ #include "cifsproto.h" #include "../common/md4.h" -#ifndef false -#define false 0 -#endif -#ifndef true -#define true 1 -#endif - /* following came from the other byteorder.h to avoid include conflicts */ #define CVAL(buf,pos) (((unsigned char *)(buf))[pos]) #define SSVALX(buf,pos,val) (CVAL(buf,pos)=(val)&0xFF,CVAL(buf,pos+1)=(val)>>8)
Kernel has its own official true/false definitions. The defines aren't even used in this file. Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> --- fs/smb/client/smbencrypt.c | 7 ------- 1 file changed, 7 deletions(-)