Skip to content

smb: simplify boolean expressions

Adarsh Das linux-cifs lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2smb: remove redundant == true comparisonsfs/smb/client/connect.c fs/smb/client/misc.c fs/smb/client/smb2ops.c +4 more+17 -170 replies
2/2smb: remove redundant == false comparisonsfs/smb/client/cifsacl.c fs/smb/client/connect.c fs/smb/client/file.c +11 more+38 -410 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] smb: simplify boolean expressions

This series simplifies boolean expressions in the SMB code by removing redundant comparisons with true/false.

Adarsh Das (2):
smb: remove redundant == true comparisons
smb: remove redundant == false comparisons

 fs/smb/client/cifsacl.c        |  2 +-
 fs/smb/client/connect.c        |  6 ++---
 fs/smb/client/file.c           |  5 ++--
 fs/smb/client/fs_context.c     |  6 ++---
 fs/smb/client/misc.c           |  2 +-
 fs/smb/client/smb2misc.c       |  4 ++--
 fs/smb/client/smb2ops.c        | 12 +++++-----
 fs/smb/client/smb2pdu.c        |  2 +-
 fs/smb/client/transport.c      |  2 +-
 fs/smb/server/oplock.c         |  6 ++---
 fs/smb/server/server.c         |  2 +-
 fs/smb/server/smb2misc.c       |  2 +-
 fs/smb/server/smb2pdu.c        | 44 ++++++++++++++++------------------
 fs/smb/server/smb_common.c     |  2 +-
 fs/smb/server/transport_rdma.c |  2 +-
 fs/smb/server/vfs.c            |  8 +++----
 fs/smb/server/vfs_cache.c      |  6 ++---
 17 files changed, 55 insertions(+), 58 deletions(-)
Signature · 1 line
2.53.0