libnvdimm-btt: Delete an unnecessary check before the function call "__nd_device_regi...
authorMarkus Elfring <elfring@users.sourceforge.net>
Sun, 24 Jul 2016 09:05:34 +0000 (11:05 +0200)
committerDan Williams <dan.j.williams@intel.com>
Sun, 24 Jul 2016 15:04:55 +0000 (08:04 -0700)
commitd4c5725d57323e2348940fcc6416072671a9b432
tree3ed4bc4ebe5a325d217e9a9a9fcea258d7d758b2
parent6839a6d96f4ea0254266d60208c1fbbd53ade546
libnvdimm-btt: Delete an unnecessary check before the function call "__nd_device_register"

The __nd_device_register() function tests whether its argument is NULL
and then returns immediately. Thus the test around the call is not needed.

This issue was detected by using the Coccinelle software.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/nvdimm/btt_devs.c
This page took 0.023964 seconds and 5 git commands to generate.