Re: [PATCH 1/2 v2] staging: dgnc: remove redundant NULL check for brd

2016-05-27 Thread Luis de Bethencourt
On 27/05/16 02:42, Daeseok Youn wrote: > the "brd" value cannot be NULL in dgnc_finalize_board_init(). > Because "brd" as a parameter of this function was already > checked for NULL. > > the dgnc_finalize_board_init() as a static function was called > only from dgnc_found_board() function and brd-

[PATCH 1/2 v2] staging: dgnc: remove redundant NULL check for brd

2016-05-26 Thread Daeseok Youn
the "brd" value cannot be NULL in dgnc_finalize_board_init(). Because "brd" as a parameter of this function was already checked for NULL. the dgnc_finalize_board_init() as a static function was called only from dgnc_found_board() function and brd->magic value was assigned once in dgnc_found_board(