[DRIVERS] ide: Code cleanups and coverity scan bug fixes

This patch mostly does code cleanups to make IDE driver coding style
look like other parts of Xvisor.

We also fix following issues reported by coverity scan:
CID 1170861 Logically dead code
CID 1170854 Uninitialized scalar variable
CID 1170853 Uninitialized scalar variable
CID 1170852 Uninitialized scalar variable
CID 1170851 Uninitialized scalar variable
CID 1170850 Uninitialized scalar variable
CID 1170849 Uninitialized scalar variable

Signed-off-by: Anup Patel <anup@brainfault.org>
[DRIVERS] input: Check dev parameter in input_reset_device() before use

This patch fixes issues "CID 1170855 Dereference before null check"
reported by coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>
[COMMANDS] vfs: Fix parameter parsing for guest_load sub-command

This patch fixes issues "CID 1170862 Logically dead code" reported
by coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>
[LIBS] vfs: Fix use of __fatfs_control_find_fat_cache() if FAT filesystem

This patch fixes issue "CID 1170857 Negative array index write" reported
by coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>
[CORE] vmm_devdrv: use strlcpy instead of strncpy in devdrv_probe()

This patch fixes issue "CID 1170863 Buffer not null terminated" reported
by coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] x86_64: Fix illegal memory access in identify_cpu()

This patch fixes issues "CID 1170856 Out-of-bounds read" reported
by coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>
[x86] x86_64_generic: Update generic_reset() to make coverity scan happy

This patch fixes issue "CID 1170864 Out-of-bounds access" reported by
coverity scan.

Signed-off-by: Anup Patel <anup@brainfault.org>