libnvdimm, bus: Check id immediately following ida_simple_get
authorOcean He <hehy1@lenovo.com>
Fri, 3 Aug 2018 12:08:33 +0000 (08:08 -0400)
committerDan Williams <dan.j.williams@intel.com>
Mon, 10 Dec 2018 23:41:34 +0000 (15:41 -0800)
commit9bf3aa44644721b287724ecac835d38f1dae4e2d
tree8944ab9cc8efa01a53e7aaf18dff1f3daacdf7ba
parent40e020c129cfc991e8ab4736d2665351ffd1468d
libnvdimm, bus: Check id immediately following ida_simple_get

The id check was not executed immediately following ida_simple_get. Just
change the codes position, without function change.

Signed-off-by: Ocean He <hehy1@lenovo.com>
Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dave Jiang <dave.jiang@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/bus.c