if (col_count == 5 && major != LVM_BLK_MAJOR && major != NBD_MAJOR
&& major != RAMDISK_MAJOR && major != LOOP_MAJOR) {
/* If the last character of the device is a digit we assume
if (col_count == 5 && major != LVM_BLK_MAJOR && major != NBD_MAJOR
&& major != RAMDISK_MAJOR && major != LOOP_MAJOR) {
/* If the last character of the device is a digit we assume
- * it is a subdevice (needed for kernel > 2.6.31) */
- if (devbuf) {
- len_devbuf = strlen(devbuf);
- if ((len_devbuf > 0) && !isdigit(devbuf[len_devbuf-1])) {
- total_reads += reads;
- total_writes += writes;
- }
+ * it is a subdevice (needed for kernel > 2.6.31) */
+ len_devbuf = strlen(devbuf);
+ if ((len_devbuf > 0) && !isdigit(devbuf[len_devbuf-1])) {
+ total_reads += reads;
+ total_writes += writes;