Fix NPE when devConfig[X] is NULL, remove unused variable from on-chip RAM