]> rtime.felk.cvut.cz Git - jailhouse.git/commit
core: ivshmem: Remove superfluous ivshmem endpoint checks
authorJan Kiszka <jan.kiszka@siemens.com>
Mon, 18 May 2015 04:47:44 +0000 (06:47 +0200)
committerJan Kiszka <jan.kiszka@siemens.com>
Mon, 18 May 2015 05:42:30 +0000 (07:42 +0200)
commitb792b9c8994c2ad22f9ecb5bf76a1e360ac4b75a
tree03328ef79a0375fda31ccdf7ab73a07ff238a1f0
parent60e585bee4ae5a56125c7f9a6b1d75f7cc171372
core: ivshmem: Remove superfluous ivshmem endpoint checks

An ivshmem PCI device always has a valid ivshmem_endpoint pointer, that
is ensured by ivshmem_connect_cell, called during device initialization.
And there is nothing that invalidates the pointer during device
lifetime. So we can remove related NULL checks.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
hypervisor/pci_ivshmem.c