]> git.baikalelectronics.ru Git - kernel.git/commit
cifs: remove redundant check for null string pointer
authorColin Ian King <colin.king@canonical.com>
Mon, 25 Jan 2016 16:25:54 +0000 (16:25 +0000)
committerSteve French <smfrench@gmail.com>
Thu, 11 Feb 2016 00:04:53 +0000 (18:04 -0600)
commit668fa8034d7f2e0ad303da011a99f5acc190db03
tree25709cdc1d7c816df484fc477c57eacb70d0187d
parentff31a3f1da523b3c3f1c57d17d41418edf12a43b
cifs: remove redundant check for null string pointer

server_RFC1001_name is declared as a RFC1001_NAME_LEN_WITH_NULL sized
char array in struct TCP_Server_Info so the null pointer check on
server_RFC1001_name is redundant and can be removed.  Detected with
smatch:

fs/cifs/connect.c:2982 ip_rfc1001_connect() warn: this array is probably
  non-NULL. 'server->server_RFC1001_name'

Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Steve French <smfrench@gmail.com>
fs/cifs/connect.c