@@ -250,17 +250,15 @@ int switchtec_diag_eye_6p_data_fetch(struct switchtec_dev *dev, struct switchtec
250250 if (ret )
251251 return ret ;
252252
253- if (out .status > EOM_WAITING_FOR_HARDWARE )
254- {
253+ if (out .status > EOM_WAITING_FOR_HARDWARE ) {
255254 return ret ;
256255 }
257256
258257 if (out .status == EOM_IN_PROGRESS ) {
259258 usleep (500000 );
260259 goto retry ;
261260 }
262- else if (out .status == EOM_SUCCESS )
263- {
261+ else if (out .status == EOM_SUCCESS ) {
264262 printf ("Eye Left %d\n" , out .eye_left );
265263 printf ("Eye Right %d\n" , out .eye_right );
266264 printf ("Eye top @X1 %d\n" , out .eye_top_x1 );
@@ -276,8 +274,7 @@ int switchtec_diag_eye_6p_data_fetch(struct switchtec_dev *dev, struct switchtec
276274 data .eye_bottom_x2 = out .eye_bottom_x2 ;
277275 memcpy (data_out , & data , sizeof (struct switchtec_diag_port_6p_eye_data ));
278276 }
279- else
280- {
277+ else {
281278 printf ("EOM Status %s\n" , diag_eom_status_string [out .status ]);
282279 return -1 ;
283280 }
@@ -312,30 +309,27 @@ int switchtec_diag_eye_fetch(struct switchtec_dev *dev, struct switchtec_diag_po
312309 if (ret )
313310 return ret ;
314311
315- if (out .status > EOM_WAITING_FOR_HARDWARE )
316- {
312+ if (out .status > EOM_WAITING_FOR_HARDWARE ) {
317313 return ret ;
318314 }
319315
320316 if (out .status == EOM_IN_PROGRESS ) {
321317 usleep (500000 );
322318 goto retry ;
323319 }
324- else if (out .status == EOM_SUCCESS )
325- {
326- printf ("Eye Left %d\n" , out .eye_left );
327- printf ("Eye Right %d\n" , out .eye_right );
328- printf ("Eye top %d\n" , out .eye_top_x1 );
329- printf ("Eye Bottom %d\n" , out .eye_bottom_x1 );
320+ else if (out .status == EOM_SUCCESS ) {
321+ printf ("Eye Left %d\n" , out .eye_left );
322+ printf ("Eye Right %d\n" , out .eye_right );
323+ printf ("Eye top %d\n" , out .eye_top_x1 );
324+ printf ("Eye Bottom %d\n" , out .eye_bottom_x1 );
330325
331- data .eye_left = out .eye_left ;
332- data .eye_right = out .eye_right ;
333- data .eye_top_x1 = out .eye_top_x1 ;
334- data .eye_bottom_x1 = out .eye_bottom_x1 ;
335- memcpy (data_out , & data , sizeof (struct switchtec_diag_port_eye_data ));
326+ data .eye_left = out .eye_left ;
327+ data .eye_right = out .eye_right ;
328+ data .eye_top_x1 = out .eye_top_x1 ;
329+ data .eye_bottom_x1 = out .eye_bottom_x1 ;
330+ memcpy (data_out , & data , sizeof (struct switchtec_diag_port_eye_data ));
336331 }
337- else
338- {
332+ else {
339333 printf ("EOM Status %s\n" , diag_eom_status_string [out .status ]);
340334 return -1 ;
341335 }
0 commit comments