[PATCH] dgnc: Don't save boards in memory that have failed to initialize

2015-03-09 Thread Giedrius Statkevičius
Remove BOARD_FAILED and don't save dgnc_boards which failed to initialize. Assign the result of kzalloc() to brd in dgnc_found_board() and only put it in the dgnc_Board[] if it successfully initializes. Also, remove BOARD_FAILED enum and all ifs that check for it. Finally, remove one final place

Re: [PATCH] dgnc: Don't save boards in memory that have failed to initialize

2015-03-09 Thread Giedrius Statkevičius
On 2015.03.09 17:27, Giedrius Statkevičius wrote: Remove BOARD_FAILED and don't save dgnc_boards which failed to initialize. Assign the result of kzalloc() to brd in dgnc_found_board() and only put it in the dgnc_Board[] if it successfully initializes. Also, remove BOARD_FAILED enum and all