File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
/*
2
- * Copyright (C) 2011-2012 Freescale Semiconductor, Inc. All Rights Reserved.
2
+ * Copyright (C) 2011-2013 Freescale Semiconductor, Inc. All Rights Reserved.
3
3
*
4
4
* This program is free software; you can redistribute it and/or modify
5
5
* it under the terms of the GNU General Public License as published by
@@ -182,7 +182,7 @@ void fsl_usb_xcvr_unregister(struct fsl_xcvr_ops *xcvr_ops)
182
182
183
183
pr_debug ("%s\n" , __func__ );
184
184
for (i = 0 ; i < MXC_NUMBER_USB_TRANSCEIVER ; i ++ ) {
185
- if (g_xc_ops [i ] == xcvr_ops ) {
185
+ if (g_xc_ops [i ] && ( g_xc_ops [ i ] == xcvr_ops ) ) {
186
186
g_xc_ops [i ] = NULL ;
187
187
return ;
188
188
}
@@ -203,7 +203,7 @@ static struct fsl_xcvr_ops *fsl_usb_get_xcvr(char *name)
203
203
}
204
204
205
205
for (i = 0 ; i < MXC_NUMBER_USB_TRANSCEIVER ; i ++ ) {
206
- if (strcmp (g_xc_ops [i ]-> name , name ) == 0 ) {
206
+ if (g_xc_ops [ i ] && ( strcmp (g_xc_ops [i ]-> name , name ) == 0 ) ) {
207
207
return g_xc_ops [i ];
208
208
}
209
209
}
You can’t perform that action at this time.
0 commit comments