1
0
mirror of https://git.FreeBSD.org/src.git synced 2025-01-19 15:33:56 +00:00

Fixed another easy case of const poisoning in the kernel. Cosmetic.

(A pointer to a const was misused to avoid loading loading the same
value twice, but gcc does exactly the same optimization automatically.
It can see that the value hasn't changed.)
This commit is contained in:
Bruce Evans 1996-09-07 21:47:53 +00:00
parent ec7ada96e6
commit a7265255cc
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=18125
3 changed files with 6 additions and 6 deletions

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.165 1996/09/06 23:08:09 phk Exp $
* $Id: syscons.c,v 1.166 1996/09/06 23:35:54 pst Exp $
*/
#include "sc.h"
@ -2215,7 +2215,7 @@ scinit(void)
was = *cp;
*cp = (u_short) 0xA55A;
if (*cp == 0xA55A) {
Crtat = (u_short *)cp;
Crtat = (u_short *)CGA_BUF;
crtc_addr = COLOR_BASE;
}
*cp = was;

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.165 1996/09/06 23:08:09 phk Exp $
* $Id: syscons.c,v 1.166 1996/09/06 23:35:54 pst Exp $
*/
#include "sc.h"
@ -2215,7 +2215,7 @@ scinit(void)
was = *cp;
*cp = (u_short) 0xA55A;
if (*cp == 0xA55A) {
Crtat = (u_short *)cp;
Crtat = (u_short *)CGA_BUF;
crtc_addr = COLOR_BASE;
}
*cp = was;

View File

@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: syscons.c,v 1.165 1996/09/06 23:08:09 phk Exp $
* $Id: syscons.c,v 1.166 1996/09/06 23:35:54 pst Exp $
*/
#include "sc.h"
@ -2215,7 +2215,7 @@ scinit(void)
was = *cp;
*cp = (u_short) 0xA55A;
if (*cp == 0xA55A) {
Crtat = (u_short *)cp;
Crtat = (u_short *)CGA_BUF;
crtc_addr = COLOR_BASE;
}
*cp = was;