lkml.org 
[lkml]   [2014]   [Jun]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 2/4] staging: dgap: pass "brd" as a paramter to dgap_after_config_loaded()
On Tue, Jun 03, 2014 at 03:27:28PM +0900, Daeseok Youn wrote:
> -static int dgap_after_config_loaded(int board)
> +static int dgap_after_config_loaded(struct board_t *brd)
> {
> + int board = brd->boardnum;
> +

We don't need to use "board" in this function. We can replaced
"dgap_board[board]->" with "brd->"

> /*
> * Initialize KME waitqueues...
> */

regards,
dan carpenter



\
 
 \ /
  Last update: 2014-06-03 10:01    [W:0.051 / U:1.532 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site