genl: remove unused code

remove unused basename logic, avoid dereference of possibly NULL variable
1 file changed