summaryrefslogtreecommitdiff
path: root/sql/sql_acl.cc
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-05-12 15:10:17 +0200
committerSergei Golubchik <serg@mariadb.org>2017-05-15 22:23:10 +0200
commit71b45032421fe47fceabe419c63e79c44794428d (patch)
treec771e726ce4140b0798e7588034704801509e1ff /sql/sql_acl.cc
parentf9264280d68dcbca2f9312c7d8620b2bcc9d0694 (diff)
downloadmariadb-git-71b45032421fe47fceabe419c63e79c44794428d.tar.gz
MDEV-9998 Fix issues caught by Clang's -Wpointer-bool-conversion warning
remove useless checks and a couple of others
Diffstat (limited to 'sql/sql_acl.cc')
-rw-r--r--sql/sql_acl.cc6
1 files changed, 0 insertions, 6 deletions
diff --git a/sql/sql_acl.cc b/sql/sql_acl.cc
index ac833e01ba7..c7e47c84db0 100644
--- a/sql/sql_acl.cc
+++ b/sql/sql_acl.cc
@@ -10639,12 +10639,6 @@ void fill_effective_table_privileges(THD *thd, GRANT_INFO *grant,
/* global privileges */
grant->privilege= sctx->master_access;
- if (!sctx->priv_user)
- {
- DBUG_PRINT("info", ("privilege 0x%lx", grant->privilege));
- DBUG_VOID_RETURN; // it is slave
- }
-
if (!thd->db || strcmp(db, thd->db))
{
/* db privileges */