Remove redundant NULL check

This commit is contained in:
Campbell Barton 2014-05-07 13:56:32 +10:00
parent 2679eaa712
commit 5e3509e2d2
1 changed files with 1 additions and 1 deletions

View File

@ -186,7 +186,7 @@ float BPY_driver_exec(ChannelDriver *driver, const float evaltime)
/* get the py expression to be evaluated */
expr = driver->expression;
if ((expr == NULL) || (expr[0] == '\0'))
if (expr[0] == '\0')
return 0.0f;
if (!(G.f & G_SCRIPT_AUTOEXEC)) {