Remove two more 'periph == NULL' checks missed in r241404.
This condition can never be true as functions are called from single place and the checks just pollute the code and confuse Clang Static Analyzer.
This commit is contained in:
parent
01ef85e179
commit
5fb9dc04df
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=241952
@ -879,11 +879,6 @@ enc_ctor(struct cam_periph *periph, void *arg)
|
||||
char *tname;
|
||||
|
||||
cgd = (struct ccb_getdev *)arg;
|
||||
if (periph == NULL) {
|
||||
printf("enc_ctor: periph was NULL!!\n");
|
||||
goto out;
|
||||
}
|
||||
|
||||
if (cgd == NULL) {
|
||||
printf("enc_ctor: no getdev CCB, can't register device\n");
|
||||
goto out;
|
||||
|
@ -255,11 +255,6 @@ ptctor(struct cam_periph *periph, void *arg)
|
||||
struct ccb_pathinq cpi;
|
||||
|
||||
cgd = (struct ccb_getdev *)arg;
|
||||
if (periph == NULL) {
|
||||
printf("ptregister: periph was NULL!!\n");
|
||||
return(CAM_REQ_CMP_ERR);
|
||||
}
|
||||
|
||||
if (cgd == NULL) {
|
||||
printf("ptregister: no getdev CCB, can't register device\n");
|
||||
return(CAM_REQ_CMP_ERR);
|
||||
|
Loading…
Reference in New Issue
Block a user