These checks just do extra work and have no effect
My justification:
https://godbolt.org/z/bP6GzzMza
if (description[1] != kUSBStringDesc)
return NULL;
- if ((description[0] & 1) != 0)
- description[0] &= ~1;
+ description[0] &= ~1;
if (description[0] < 2)
return CFSTR("");
if (!buffer)
return (0);
- if (buffer && bufsize > 0)
+ if (bufsize > 0)
*buffer = '\0';
if ((first = (http_credential_t *)cupsArrayFirst(credentials)) != NULL &&
if (!buffer)
return (0);
- if (buffer && bufsize > 0)
+ if (bufsize > 0)
*buffer = '\0';
cert = http_sspi_create_credential(first);
*comp_ptr++ = temp;
/*
- * Check the last bit in the current byte and the first bit in the
- * next byte...
+ * Check the last bit in the current byte...
*/
- if ((temp & 0x01) && comp_ptr < line_end && *comp_ptr & 0x80)
+ if ((temp & 0x01) && comp_ptr < line_end)
*comp_ptr &= 0x7f;
}
}
else if (*rule == '+' && current != NULL)
{
if (logic != MIME_MAGIC_AND &&
- current != NULL && current->prev != NULL)
+ current->prev != NULL)
{
/*
* OK, we have more than 1 rule in the current tree level... Make a