staging: lustre: llite: Fix No space after the declaration
PATCH 1/3 staging: lustre: llite: Fix No space after the declaration
Added a new line
Signed-off-by Aparna Karuthodi <[email protected]>
--- drivers/staging/lustre/lustre/llite/llite_capa.c | 1 + 1 file changed, 1 insertion(+)
drivers/staging/lustre/lustre/llite/llite_capa.c +1 -0
@@ -140,6 +140,7 @@ static void sort_add_capa(struct obd_capa *ocapa, struct list_head *head)static inline int obd_capa_open_count (struct obd_capa *oc) {struct ll_inode_info *lli =ll_i2info (oc->u.cli.inode); +return atomic_read (&lli->lli_open_count); }
Signature · 1 line
1.7.9.5
PATCH 2/3 staging: lustre: llite: Fix space required before the open parenthesis '('
Added a space before the open parenthesis '('
Signed-off-by Aparna Karuthodi <[email protected]>
--- drivers/staging/lustre/lustre/llite/lproc_llite.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/lustre/lustre/llite/lproc_llite.c +1 -1
@@ -1346,7 +1346,7 @@ void ll_rw_stats_tally(struct ll_sb_info *sbi, pid_t pid,lprocfs_oh_clear (&io_extents->pp_extents[cur].pp_w_hist); } -for (i =0 ; (count >= (1 <<LL_HIST_START << i)) && +for (i =0 ; (count >= (1 <<LL_HIST_START << i)) && (i < (LL_HIST_MAX -1 )); i++);if (rw ==0 ) { io_extents->pp_extents[cur].pp_r_hist.oh_buckets[i]++;
Signature · 1 line
1.7.9.5
PATCH 3/3 staging: dgnc: Fixed braces {} are not necessary for single statement blocks
In reply to Aparna KaruthodiRemoved the braces of if else statements which contain only one statement
Signed-off-by Aparna Karuthodi <[email protected]>
--- drivers/staging/dgnc/dgnc_tty.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-)
drivers/staging/dgnc/dgnc_tty.c +4 -4
@@ -907,7 +907,7 @@ void dgnc_check_queue_flow_control(struct channel_t *ch)* 3) NONE - Do nothing. Since we didn't do anything to turn off the * other side, we don't need to do anything now. */ -if (qleft > (RQUEUESIZE /2 )) { +if (qleft > (RQUEUESIZE /2 ))/* HWFLOW */ if (ch->ch_digi.digi_flags &RTSPACE || ch->ch_c_cflag &CRTSCTS ) {if (ch->ch_flags &CH_RECEIVER_OFF ) {
@@ -921,10 +921,10 @@ void dgnc_check_queue_flow_control(struct channel_t *ch) ch->ch_bd->bd_ops->send_start_character (ch); }/* No FLOW */ -else { + else/* Nothing needed. */ - } - } + + }
Signature · 1 line
1.7.9.5