selinux: simple cleanup for cond_read_node()
authorNamhyung Kim <namhyung@kernel.org>
Sat, 14 Jun 2014 16:19:01 +0000 (01:19 +0900)
committerPaul Moore <pmoore@redhat.com>
Thu, 19 Jun 2014 18:53:15 +0000 (14:53 -0400)
commitf004afe60db5b98f2b981978fde8a0d4c6298c5d
tree3ffe2e1c455bc8cf2e5f43e9601347bec9758655
parent4bb9398300a3a2c691e5c0ad6b9cfa78775e767e
selinux: simple cleanup for cond_read_node()

The node->cur_state and len can be read in a single call of next_entry().
And setting len before reading is a dead write so can be eliminated.

Signed-off-by: Namhyung Kim <namhyung@kernel.org>
(Minor tweak to the length parameter in the call to next_entry())
Signed-off-by: Paul Moore <pmoore@redhat.com>
security/selinux/ss/conditional.c