Trivial optimisation

Signed-off-by: Steve Bennett <steveb@workware.net.au>