When devclass_get_maxunit is passed a NULL, return -1 to indicate that there's nothing allocated at all yet.
When devclass_get_maxunit is passed a NULL, return -1 to indicate that
there's nothing allocated at all yet.

jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase,jrobhoward/SCADAbase