fpga: altera: cyclon2: Check function pointer before calling
authorAlexander Dahl <ada@thorsis.com>
Fri, 28 Jun 2019 12:41:23 +0000 (14:41 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 08:21:15 +0000 (10:21 +0200)
commitb283d6ba67a7b4c5914949ef1d756bf88cb3a0e4
tree036058118bae0f60cd3d2ffe1d5a977bb18476a3
parent3911b19cac9dc7d11e7d9e79e80fb62eced74ba7
fpga: altera: cyclon2: Check function pointer before calling

As already done for the 'pre' function, a check is added to not follow a
NULL pointer, if somebody has not assigned a 'post' function.

Signed-off-by: Alexander Dahl <ada@thorsis.com>
drivers/fpga/cyclon2.c