summaryrefslogtreecommitdiff
path: root/fs/cifs
diff options
context:
space:
mode:
authorattack11 <fernandobouchet@gmail.com>2019-05-22 16:15:58 -0300
committerRafael Marçalo <raroma09@gmail.com>2024-02-27 11:13:30 +0000
commit252d88c7c4c8238661f99e3f17c47e3550aa5ed8 (patch)
tree1e3f9501ecf603721f7bbe0a97c6fcaad153f4e2 /fs/cifs
parent56710e90138f1d65f56b71b64c04bf07c6a50fff (diff)
fs: cifs: Remove unnecessary null check
Clang warns: ../fs/cifs/connect.c:3090:15: error: address of array 'server->server_RFC1001_name' will always evaluate to 'true' [-Werror,-Wpointer-bool-conversion] if (server->server_RFC1001_name && ~~~~~~~~^~~~~~~~~~~~~~~~~~~ ~~ 1 error generated.
Diffstat (limited to 'fs/cifs')
-rw-r--r--fs/cifs/connect.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/fs/cifs/connect.c b/fs/cifs/connect.c
index cda22b312a4c..92b19f7540d2 100644
--- a/fs/cifs/connect.c
+++ b/fs/cifs/connect.c
@@ -3116,8 +3116,7 @@ ip_rfc1001_connect(struct TCP_Server_Info *server)
if (ses_init_buf) {
ses_init_buf->trailer.session_req.called_len = 32;
- if (server->server_RFC1001_name &&
- server->server_RFC1001_name[0] != 0)
+ if (server->server_RFC1001_name[0] != 0)
rfc1002mangle(ses_init_buf->trailer.
session_req.called_name,
server->server_RFC1001_name,