diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2015-04-30 16:30:24 +0200 |
---|---|---|
committer | Steve French <smfrench@gmail.com> | 2015-05-20 18:36:16 +0200 |
commit | 65c3b205ebe06a389a29544e71a8071da0ce4155 (patch) | |
tree | 6f8a9c996c0d4497fdf3e614082a3f0ae206b8dc /lib/parser.c | |
parent | [cifs] fix null pointer check (diff) | |
download | linux-65c3b205ebe06a389a29544e71a8071da0ce4155.tar.xz linux-65c3b205ebe06a389a29544e71a8071da0ce4155.zip |
CIFS: remove an unneeded NULL check
Smatch complains because we dereference "ses->server" without checking
some lines earlier inside the call to get_next_mid(ses->server).
fs/cifs/cifssmb.c:4921 CIFSGetDFSRefer()
warn: variable dereferenced before check 'ses->server' (see line 4899)
There is only one caller for this function get_dfs_path() and it always
passes a non-null "ses->server" pointer so this NULL check can be
removed.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Steve French <smfrench@gmail.com>
Diffstat (limited to 'lib/parser.c')
0 files changed, 0 insertions, 0 deletions