@@ -113,7 +113,7 @@ static void sas_form_port(struct asd_sas_phy *phy)
113113
114114 if (port ) {
115115 if (!phy_is_wideport_member (port , phy ))
116- sas_deform_port (phy , 0 );
116+ sas_deform_port (phy , false );
117117 else if (phy -> suspended ) {
118118 phy -> suspended = 0 ;
119119 sas_resume_port (phy );
@@ -206,7 +206,7 @@ static void sas_form_port(struct asd_sas_phy *phy)
206206 * This is called when the physical link to the other phy has been
207207 * lost (on this phy), in Event thread context. We cannot delay here.
208208 */
209- void sas_deform_port (struct asd_sas_phy * phy , int gone )
209+ void sas_deform_port (struct asd_sas_phy * phy , bool gone )
210210{
211211 struct sas_ha_struct * sas_ha = phy -> ha ;
212212 struct asd_sas_port * port = phy -> port ;
@@ -301,23 +301,23 @@ void sas_porte_link_reset_err(struct work_struct *work)
301301 struct asd_sas_event * ev = to_asd_sas_event (work );
302302 struct asd_sas_phy * phy = ev -> phy ;
303303
304- sas_deform_port (phy , 1 );
304+ sas_deform_port (phy , true );
305305}
306306
307307void sas_porte_timer_event (struct work_struct * work )
308308{
309309 struct asd_sas_event * ev = to_asd_sas_event (work );
310310 struct asd_sas_phy * phy = ev -> phy ;
311311
312- sas_deform_port (phy , 1 );
312+ sas_deform_port (phy , true );
313313}
314314
315315void sas_porte_hard_reset (struct work_struct * work )
316316{
317317 struct asd_sas_event * ev = to_asd_sas_event (work );
318318 struct asd_sas_phy * phy = ev -> phy ;
319319
320- sas_deform_port (phy , 1 );
320+ sas_deform_port (phy , true );
321321}
322322
323323/* ---------- SAS port registration ---------- */
@@ -358,8 +358,7 @@ void sas_unregister_ports(struct sas_ha_struct *sas_ha)
358358
359359 for (i = 0 ; i < sas_ha -> num_phys ; i ++ )
360360 if (sas_ha -> sas_phy [i ]-> port )
361- sas_deform_port (sas_ha -> sas_phy [i ], 0 );
362-
361+ sas_deform_port (sas_ha -> sas_phy [i ], false);
363362}
364363
365364const work_func_t sas_port_event_fns [PORT_NUM_EVENTS ] = {
0 commit comments