Re: [PATCH] smb: client: delete "true", "false" defines

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



merged into cifs-2.6.git for-next

On Tue, Jan 23, 2024 at 4:40 AM Alexey Dobriyan <adobriyan@xxxxxxxxx> wrote:
>
> Kernel has its own official true/false definitions.
>
> The defines aren't even used in this file.
>
> Signed-off-by: Alexey Dobriyan <adobriyan@xxxxxxxxx>
> ---
>
>  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)
>


-- 
Thanks,

Steve





[Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux